[vtkusers] How to extract poly data from an unstructured grid
Elvis Dowson
elvis.dowson at mac.com
Thu Oct 9 08:22:09 EDT 2008
Hi Dominik,
Here is the code fragment. I have set the
input connection.
vtkUnstructuredGrid aTriangleGrid
aTriangleGrid Allocate 1 1
aTriangleGrid InsertNextCell [aTriangle GetCellType] [aTriangle
GetPointIds]
aTriangleGrid SetPoints trianglePoints
vtkDataSetSurfaceFilter triangleCellDataSetSurfaceFilter
triangleCellDataSetSurfaceFilter SetInput aTriangleGrid
vtkPolyDataMapper trianglePolyData
trianglePolyData SetInputConnection
[triangleCellDataSetSurfaceFilter GetOutputPort]
Elvis Dowson
On Oct 9, 2008, at 3:40 PM, Dominik Szczerba wrote:
> Probably you forgot to set input or call Update() somewhere, I am
> unable to
> see quickly in the long code (next time only post minimal required
> code
> please)
>
> Dominik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081009/c82cc97c/attachment.htm>
More information about the vtkusers
mailing list