[vtkusers] vtkLinearFilter doesn't work with the output of vtkWindowedSincPolyDataFilter

Jothy jothybasu at gmail.com
Mon Aug 1 11:32:19 EDT 2011


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 ).

I will try this and let you know.

Thanks again

Jothy



On Mon, Aug 1, 2011 at 4:23 PM, David Doria <daviddoria at gmail.com> wrote:

> On Mon, Aug 1, 2011 at 11:19 AM, Jothy <jothybasu at gmail.com> wrote:
>
>> 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 vtkWindowedSincPolyDataFilter
>> is a vtkUnstructuredGrid, since its a mesh.
>>
>> Is there any way to convert vtkUnstructuredGrid back to vtkPolyData?
>>
>> Thanks
>>
>> Jothy
>>
>
> The output of vtkWindowedSincPolyDataFilter is a vtkPolyData, since it
> derives from vtkPolyDataAlgorithm:
> http://www.vtk.org/doc/nightly/html/classvtkWindowedSincPolyDataFilter.html
>
> For information sake (since I don't think this is the problem here), you
> can use vtkDataSetSurfaceFilter to convert an UnstructuredGrid to a
> PolyData:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DataSetSurfaceFilter
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110801/49ed7277/attachment.htm>


More information about the vtkusers mailing list