[vtkusers] Custom filter polydata -> imagedata

David Gobbi david.gobbi at gmail.com
Tue Jun 23 15:07:25 EDT 2015


The use of vtkImageAlgorithm as a base class is correct.  The output must
be an image, but the input can be anything.

For example, take a look at the code for vtkShepardMethod.
http://www.vtk.org/doc/nightly/html/classvtkShepardMethod.html

 - David


On Tue, Jun 23, 2015 at 12:57 PM, Bruce Jones <bruce.david.jones at gmail.com>
wrote:

> Hi,
>
> I am trying to write a custom VTK filter to use with paraview. The filter
> is designed to interpolate data form an sph simulation (polydata) to a
> regular grid (imagedata). However, it is not clear to me which base class
> my filter should inherit from.
>
> I initially tried inheriting from vtkImageAlgorithm, the code worked and I
> was bale to load the filter in paraview, however I since have realised that
> this would only work for imagedata input + imagedata output.
>
> What is your recommendation for polydata input + imagedata output?
>
> Cheers,
> Bruce
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150623/6bc29e63/attachment.html>


More information about the vtkusers mailing list