[vtkusers] Using vtkTransformPolyDataFilter Locks Up Application
zmanvortex
donny.zimmerman at willowpointsoftware.com
Mon Jan 6 00:43:45 EST 2014
Thanks Bill. I looked at this class a while back and can't remember why I
didn't get it to work. After looking at the example again, I am a little
confused on how they are colored without a lookup table. The contour filter
generates 3 contours spread out between scalar values of 25 to 75 so I am
confused by the mapper->SetScalarRange(0,4). I also don't know how the
mapper in that example is using red,yellow,green, and blue without color
mapping defined.
The first part of the example is almost identical to mine. I create polys
(quads) and set the scalar values for each point to a value between 20 and
180. I also create a color lookup table with scalars from 0 to 254 mapped to
discrete rgb colors and add the lookup table to the mapper. I will try again
tomorrow night to get it to work by calling GenerateValues(160, 20, 180).
Should I call SetScalarRange(20, 80) or SetScalarRange(0, 160)? I seem to
remember that I had problems getting the contour output scalars to map to
correct lookup color table values.
--
View this message in context: http://vtk.1045678.n5.nabble.com/Using-vtkTransformPolyDataFilter-Locks-Up-Application-tp5725220p5725226.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list