<div><div class="gmail_quote">On Mon, Aug 1, 2011 at 11:19 AM, Jothy <span dir="ltr"><<a href="mailto:jothybasu@gmail.com">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>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">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">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DataSetSurfaceFilter</a></div><div><br></div><div>David </div></div></div>