[vtkusers] Using different component from scalar for coloring data

Simon von Bibra simfirehawk at gmx.de
Mon Jun 17 09:52:13 EDT 2013


Hello VTK-Community,

I have some cell data in a vtkdataset
The data has also some scalar attached with an array which has 4 components.
Now I want to choose the 2. component of the array for coloring, but 
unfortunately it does not work.

For setting the coloring component I use:
Snippet

mapper.SetScalarModeToUseCellData();
mapper.ColorByArrayComponent(0, 1);

any ideas what is the problem?

Kind Regards
Simon



More information about the vtkusers mailing list