Linear Extrusion question
Lisa S. Avila
lisa.avila at kitware.com
Mon Mar 6 22:06:05 EST 2000
Hello Joseph,
Did you tell the mapper what the scalar range of your data is?
Lisa
At 06:08 PM 3/6/00 -0800, Joseph Toman wrote:
>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.
>--------------------------------------------------------------------
--------------------------------------------------------------------
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