[vtkusers] How to extract poly data from an unstructured grid

Dominik Szczerba dominik at itis.ethz.ch
Thu Oct 9 08:30:10 EDT 2008


I think the reason is you are not calling Update on the surface filter. 

Dominik

On Thursday 09 October 2008 02:22:09 pm you wrote:
> 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



-- 
Dominik Szczerba, Ph.D.
Computational Physics Group
Foundation for Research on Information Technologies in Society
http://www.itis.ethz.ch



More information about the vtkusers mailing list