[vtkusers] How to select a specific cell/point attribute from a vtkDataSet?

Leguay Romain romain.leguay at etu.u-bordeaux1.fr
Wed May 18 05:59:17 EDT 2011


Hello,

I try to color my data with cell/point attributes.
I build a vtkLookupTable and I set it inside a vtkMapper like this:

vtkLookupTable lut = createVTKLookupTable(COLD_AND_HOT);
vtkPolyDataMapper mapper = new vtkPolyDataMapper();
mapper.SetInput(myPolyData);
mapper.SetLookuTable(lut);
mapper.Update();

I don't find any methods to set an attibute's polydata to the mapper.

Has anyone got any ideas?

Thanks,
Romain




More information about the vtkusers mailing list