[vtkusers] 3D Plane with Color Mapping: getting closer
Eric Engelhard
eric_cl at pacbell.net
Fri Nov 30 11:32:26 EST 2001
Eric Engelhard wrote:
[snip]
> Questions:
>
> 1. Is the data set correctly formatted?
> 2. Am I misguided in my use of vtkStructuredPointsGeometryFilter below?
> 3. what is the best color mapping method to use here?
[snip]
Before someone begins to tackle this:
1. I corrected the format of the data file.
2. I can generate a plane with:
vtkStructuredPointsReader data
data SetFileName $VTK_DATA/structured_points_test.vtk
vtkStructuredPointsGeometryFilter plane
plane SetInput [data GetOutput]
plane SetExtent 0 6 0 6 0 1
vtkLookupTable lut
vtkPolyDataMapper planeMapper
planeMapper SetLookupTable lut
planeMapper SetInput [plane GetOutput]
planeMapper SetScalarRange 1 5
3. ...but I am still trying to figure out how to map the color scalars.
More information about the vtkusers
mailing list