[vtkusers] single actor with different cell-colors

David E DeMarle dave.demarle at kitware.com
Wed Nov 8 11:14:57 EST 2006


Yes,

Read the documentation for vtkMapper. It explains how cell and point data is
mapped through a lookoup table to produce colors.

cheers,
Dave DeMarle

On 11/8/06, Jens <jens-devel at gmx.de> wrote:
>
> Hi,
>
> I would like to color cells depending on there cell-data.
>
> Is it possible to have one _single_ actor out of an unstructured grid,
> which cells are in different colors depending on the cell-data?
>
> I was searching for a possibility like that but only found ways to set
> the color of a whole actor.
>
> The only solution I can see now is to split the unstructured grid using
> vtkThreshold into  a bunch of small grids and create actors out of them.
> That would take much memory and time because each cell belongs to more
> than one color-region. I would have to run through the whole pipeline
> each time the user changes the color-region.
>
> Any other ideas?
>
> Greetings
> Jens
> _______________________________________________
> 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/20061108/386bd7d0/attachment.htm>


More information about the vtkusers mailing list