[vtkusers] Setting the scalar values

Richard A Rowe rar109 at york.ac.uk
Wed Mar 14 15:32:18 EDT 2007


Hi all,

I'm reading in a vtk file that has no scalar information
using vtkPolyDataReader(). I'd like to give each point 
in the vtkPolyData object that it outputs a scalar value
that I have in a standard array. I'd like to use these 
scalars for color mapping.

I can see how to color map by creating an object
manually such in example: Examples/DataManipulation/Cxx/Cube.cxx,
but I'm a little stuck when it comes to reading in
from a vtk file.

Can anyone point me in the right direction please?

Cheers,
Richard. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070314/f25cd891/attachment.htm>


More information about the vtkusers mailing list