[vtkusers] Re: coloring objects

Jean-Do Barnichon jeando.barnichon at free.fr
Tue Dec 12 17:41:00 EST 2006


hi Debbie,
you should find some usefull information on a recent thread 
with subject "single actor with different cell-colors"
hth.
Jean-Do


> Message: 1
> Date: Mon, 11 Dec 2006 17:22:39 +0000
> From: "debbie larson" <debbielarson_9 at hotmail.com>
> Subject: [vtkusers] coloring objects
> To: vtkusers at vtk.org
> Message-ID: <BAY106-F329F9FDBF054802064E864A9D00 at phx.gbl>
> Content-Type: text/plain; format=flowed
> 
> 
> Hi,

> I am writing triangular PolyData representing cylinders, to a file using 
> vtkPolyDataWriter. The triangles are generated with vtkCylinderSource. These 
> cylinders belong to two different sets that I would like to distinguish with 
> two different colors. Is there a way I can assign a scalar to each set of 

> cylinders, save it to a file with vtkPolyDataWriter and retrieve the color 
> with vtkPolyDataReader?
> 
> Thanks

> deb




More information about the vtkusers mailing list