[vtkusers] vtkUnstructuredGrid to vtkPolydata

Kevin Wright krw at viz-solutions.com
Fri Oct 12 11:47:09 EDT 2001


> But what is the easiest way to transform vtkUnstructuredGrid to vtkPolydata?

An Unstructured Grid is a three dimensional data type (i.e. can include tetrahedrons, cubes,
etc.) and PolyData is two dimensional (surfaces, lines, points).  So, the question is what do
you want to do with the grid data?  If you want the outer surface of the unstructured grid,
take a look at vtkGeometryFilter.  If the original data you had was a surface to begin with,
you can bypass the unstructured grid completely by using Delauny2D instead of 3D.  Hope that
helps.

Kevin.





More information about the vtkusers mailing list