[vtkusers] graphing multiple scalar components with vtkPolyDataMapper
vergil at gmail.com
Thu Aug 10 16:55:20 EDT 2006
I have a vtkPolyData for which I'd like to keep track of several
different graphable quantities, one in each component of the polydata's
scalars. I have two questions.
1.) How many components in a polydata's scalars are allocated by
default? Can I change the number on the fly, or do I have to replace
the old scalars with a new vtkDataArray that has the proper number of
2.) How do I tell the vtkPolyDataMapper which component to graph? I
see that there is a "ColorByArrayComponent" method in vtkMapper, but the
documentation mentions that "it is better to do this in the lookup table."
Thanks for your help,
More information about the vtkusers