<div dir="ltr">Thanks, but I really don't understand why it does not work. Anyway, will this dataSetSurfaceFilter preserve the holes inside the mesh. For instance, if the mesh has a empty volume inside it (lung tumor which is not part of the lung ).<br>
<br>I will try this and let you know.<br><br>Thanks again<br><br>Jothy<br><br><br><br><div class="gmail_quote">On Mon, Aug 1, 2011 at 4:23 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@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><div class="gmail_quote"><div class="im">On Mon, Aug 1, 2011 at 11:19 AM, Jothy <span dir="ltr"><<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@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 dir="ltr">I mean it give incorrect results. After applying the extrusion filter I use vtkImageAccumulate to get the no. of voxels inside the extrusion (with reverse stencil ON in vtkImageStencil). it gives "0" voxels. But it works correclty with appendPolyDataFilter->GetOutput(). I think the output of vtk<span style="color:#000000"></span>WindowedSincPolyDataFilter is a vtkUnstructuredGrid, since its a mesh.<br>
<br>Is there any way to convert vtkUnstructuredGrid back to vtkPolyData?<br><br>Thanks<br><font color="#888888"><br>Jothy</font></div></blockquote><div><br></div></div><div>The output of vtk<span style="color:rgb(0, 0, 0)"></span>WindowedSincPolyDataFilter is a vtkPolyData, since it derives from vtkPolyDataAlgorithm:</div>
<a href="http://www.vtk.org/doc/nightly/html/classvtkWindowedSincPolyDataFilter.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkWindowedSincPolyDataFilter.html</a><div><br></div><div>For information sake (since I don't think this is the problem here), you can use vtkDataSetSurfaceFilter to convert an UnstructuredGrid to a PolyData:</div>
<div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DataSetSurfaceFilter" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DataSetSurfaceFilter</a></div><div><br></div><font color="#888888"><div>
David </div></font></div></div>
</blockquote></div><br></div>