[vtkusers] PolyDataMapper colors
David Gobbi
david.gobbi at gmail.com
Sun Dec 13 12:06:21 EST 2009
On Sun, Dec 13, 2009 at 9:48 AM, David Doria <daviddoria+vtk at gmail.com> wrote:
>
> Got it, thanks. It seems to me that a visualization toolkit would know
> colors to be a special object. Is there any way we can add a
> "SetColors" type function to vtkDataSet to alleviate this type of
> confusion?
The "SetScalars" method already exists and is more flexible than
SetColors would be, because there are several ways that scalars can be
used.
Also, in the mapper you can specify that a particular named array will
be used to color your data (though I forget exactly what the method is
called). This is even more flexible, since you can have several color
arrays and switch between them.
David
More information about the vtkusers
mailing list