[vtkusers] single actor with different cell-colors

Jens jens-devel at gmx.de
Wed Nov 8 08:10:17 EST 2006


solved - found the functions in vtkMapper.

Jens schrieb:
> 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
> 
> 



More information about the vtkusers mailing list