[vtkusers] Specify color of a vtkPolyData object

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


On Wed, Apr 21, 2010 at 3:27 PM, David E DeMarle
<dave.demarle at kitware.com> wrote:
> David is right, there is no built in way to make that happen
> automatically in VTK.
>
> You could however put the chosen color in the PolyData's field data
> array set., and then it will be up to your code to retrieve that and
> tell the Actor to use it as its color.
>
> David E DeMarle

Yep, good idea - here's the demo:
http://www.vtk.org/Wiki/VTK/Examples/FieldData

Thanks,

David



More information about the vtkusers mailing list