[vtkusers] coloring glyphs
Phil Cook
p.cook at cs.ucl.ac.uk
Thu Aug 22 05:31:42 EDT 2002
> I've got a POLYDATA file of N points used as input for a Glyph3D. I'd like to
> be able to color consecutive chunks of the glyphs (eg, first N/2 red, second
> N/2 green). Any easy solutions?
>
If you associate scalars with the polydata points, these can be used to
color the glyphs.
Call
glyph->SetColorModeToColorByScalar();
To tell the glyph to use scalar data.
Then make a vtkLookupTable that will map the scalars to the desired
colours.
Phil
More information about the vtkusers
mailing list