[vtkusers] colormapping

Burlen burlen at apollo.sr.unh.edu
Mon Oct 10 08:45:37 EDT 2005


I think that what you want to do is call

SetLookupTable

on your poly data mapper. 

On Monday 10 October 2005 07:49 am, Schluperman Schluperman wrote:
> Hi my name is Christoph and I’am a working with vtk for only one week. I
> have an array with hundreds of points (xyz).It is no problem to illustrate
> the points(vtkpoints=>vtkpolydata=>vtkpolydatamapper=>vtkActor
).but now I
> want to map a colour to every Point. The scalar values for the colour is
> written in another Array. I know that I have to create the vtklookuptable,
> (which is no problem) but I don’t know how to tell the vtkpolydatamapper
> that he should map the values to the points. Do I have to do something
> special?
>
>  Thanks for your help
>
> Christoph



More information about the vtkusers mailing list