[vtkusers] get value at x y z (interpolate)

David Doria daviddoria at gmail.com
Mon Dec 27 09:38:44 EST 2010


On Mon, Dec 27, 2010 at 8:29 AM, John Fraser <John.Fraser at icr.ac.uk> wrote:
> Not sure if this helps or not, I use vtkTupleInterpolator for
> interpolation of (x,y) and it works fine, e.g.
>
> ...
> interpolator.AddTuple(cps, factor);
> ...
> interpolator.InterpolateTuple(value, factor);

Laurent,

As far as I know in VTK you have to have "structured" data to do any
interpolation (where polydata is "unstructured").

Take a look at these:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/ShepardMethod
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/CardinalSpline

They should convert your polydata into a structured data set that you
can then perform interpolation on.

David



More information about the vtkusers mailing list