Linear Extrusion question

Joseph Toman toman at marge.cyber-dyne.com
Mon Mar 6 21:08:47 EST 2000



I hope this is simple, and I'm just not doing something right. I need to
extrude polygons in a vtkPolyData into volumes, and then paint the resultant
cells (strips) according to a color table. Everything I've tried so far,
which has been variations on this:

...
vtkScalars colors
...
vtkPolyData polydata
  polydata SetPoints points
  polydata SetPolys polys
  [polydata GetCellData] SetScalars colors
...

vtkLinearExtrusionFilter extrude
  extrude SetInput polydata
[[extrude GetOutput] GetCellData] SetScalars colors


has yielded white, white or white, which isn't even the color of the
original polygon. Where in this should I be trying to set the scalar
data for the extruded triangle strip data, or would I just be better
off building the faces explicitly? I know the second option works, I'm
just looking for a shortcut in using the extrusion filter.

						J. Toman
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list