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

Jothy jothybasu at gmail.com
Mon Aug 1 12:41:13 EDT 2011


For this to work properly, the contours should have a constant z-spacing.
Now it workd well with contours (vtkPolyData) with constant z-apacing.

Jothy

On Mon, Aug 1, 2011 at 4:32 PM, Jothy <jothybasu at gmail.com> wrote:

> 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/50f7f3cd/attachment.htm>


More information about the vtkusers mailing list