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

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


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

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

> On Mon, Aug 1, 2011 at 11:11 AM, Jothy <jothybasu at gmail.com> wrote:
>
>> Hi all,
>>
>> I have smoother a mesh with vtkWindowedSincPolyDataFilter and now I would
>> like to do some extrusion with the mesh for some purpose. But it didn't work
>> properly if I use extrude->SetInput(smoother->GetOutput()). I works well
>> with the input to smoothing filter from vtkAppendPolyDataFilter.
>>
>> Should I convert the type of the output from vtkWindowedSincPolyDataFilter
>> to be used with linear extrusion filter?
>>
>> Thanks
>>
>> Jothy
>>
>
>
> What do you mean "it didn't work properly"? Compiler errors? Incorrect
> results?
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110801/6ec9a780/attachment.htm>


More information about the vtkusers mailing list