[vtkusers] How to find rendered Cells and their colors

David E DeMarle dave.demarle at kitware.com
Wed Mar 7 12:31:51 EST 2007


Try vtkVisibleCellSelector. It can give you the cellIds of all of the
visible cells.

It causes the renderer to enter a special mode in which each cell gets its
own color, renders, readsback the pixel buffer, and spits out a list of the
cells that were visible.

On 3/7/07, Lim, Theodore <T.Lim at hw.ac.uk> wrote:
>
>  Hello everybody.
>
>
>
> Is there a way to query the renderer for the cells and its associated
> colors being rendered?
>
>
>
> I would like to extract the cell IDs and its color that is visible at any
> given camera orientation and position.
>
>
>
> It's something like asking the graphics board which pixels (and color) is
> being displayed.
>
>
>
> I'm not sure if this can be done via the vtk classes available. Would
> appreciate if anyone can point me in the right direction.
>
>
>
> Thanks in advance,
>
> Theo.
>
>
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070307/dcb7953c/attachment.htm>


More information about the vtkusers mailing list