[vtkusers] Converting Unstructured Grid to Polydata

David Doria daviddoria at gmail.com
Fri Mar 11 07:49:31 EST 2011


On Fri, Mar 11, 2011 at 3:58 AM, Jihang Wang <wangjihang88 at gmail.com> wrote:

> Hi guys,
>
> I am trying to convert the output of delaunay3D which belong to
> Unstructured Grid to Polydata. Someone said we can use vtkGeometryFilter to
> do it. When I try it, I get an error below.
>
> cannot convert parameter 1 from 'vtkUnstructuredGrid *' to 'vtkDataObject
> *'
>
> My coding is:
> vtkGeometryFilter *extract = vtkGeometryFilter::New();
> extract->SetInput(delaunay3D->GetOutput());
>
> Thanks,
>
> Jihang
>

My guess is that you need to #include <vtkUnstructuredGrid.h>

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110311/00122354/attachment.htm>


More information about the vtkusers mailing list