[vtkusers] Specify color of a vtkPolyData object

David Doria daviddoria+vtk at gmail.com
Wed Apr 21 15:13:16 EDT 2010


On Wed, Apr 21, 2010 at 11:49 AM, Xiaofeng Z <xf10036 at hotmail.com> wrote:
> Thanks for your response.  But I creates poly data in a class other than the
> class that creates actors.  I would like to let poly data object to carry
> the color information.  Is it possible to specify one color for the entire
> poly data?  I don't need to specify color for each point or cell, etc.
>
> Thanks!
>
> Xiaofeng Z

Nope. Either color the actor, or color all of the points of the
polydata the same color. It is even more abstract than that, you are
not assigning the polydata colors, you are simply adding an array of
colors and then telling later filters that you want to interpret those
values as colors.

David



More information about the vtkusers mailing list