<meta http-equiv="content-type" content="text/html; charset=utf-8"><div class="gmail_quote">On Fri, Mar 11, 2011 at 3:58 AM, Jihang Wang <span dir="ltr"><<a href="mailto:wangjihang88@gmail.com">wangjihang88@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>Hi guys,</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>cannot convert parameter 1 from 'vtkUnstructuredGrid *' to 'vtkDataObject *'</div>
<div> </div>
<div>My coding is:</div>
<div>vtkGeometryFilter *extract = vtkGeometryFilter::New(); <br>extract->SetInput(delaunay3D->GetOutput());</div>
<div> </div>
<div>Thanks,</div>
<div> </div><font color="#888888">
<div>Jihang</div></font></blockquote><div><br></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">My guess is that you need to #include <vtkUnstructuredGrid.h></span><br>
<br><div>David </div></div>