[vtkusers] Creating a simple triangle that can later be extruded using vtkLinearExtrusionfilter

Elvis DOWSON elvis_dowson at hotmail.com
Fri Dec 26 07:32:29 EST 2003


Hi ,
        I'm trying to learn how to extrude polygons using
vtkLinearExtrusionFilter.

I took a look at the Build unstructured grid example, which builds a solid
triangle in 3D space. However, it
- seems to be a complicated method to create a simple triangle
- the vtkLinearExtrusionFilter does not accept objects of type
vtkUnstructuredGrid as its input.

( I have attached a TCl example that builds a simple triangle using an
unstructured grid, just for reference. )

Could someone please tell me how I can create a simple triangle in 3D space
and feed it to vtkLinearExtrusionFilter to extrude the triangle ?

Thanks !

Elvis John DOWSON
-------------- next part --------------
A non-text attachment was scrubbed...
Name: triangle.tcl
Type: application/octet-stream
Size: 1365 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20031226/c60e4009/attachment.obj>


More information about the vtkusers mailing list