[vtkusers] interpolation

Marie-Gabrielle Vallet mgv.research at gmail.com
Thu Apr 24 15:00:38 EDT 2008


Oliver,

it depends what you mean by the best way...
Piecewise linear interpolation is continuous, and not expensive once you
know which cell the point belongs to.

The attribute of a point (x,y,z) included in a grid cell is the weighted
average of cell node attributes. The weight associated to a node i is the
relative volume of the virtual cell obtained after changing i for the point
location.

Marie-Gabrielle Vallet

> Date: Thu, 24 Apr 2008 13:45:44 +0200
> From: "Oliver Gloth" <oliver.gloth at engits.com>
> Subject: [vtkusers] interpolation
> To: "'vtkusers'" <vtkusers at vtk.org>
> Message-ID: <005901c8a600$bada5220$0b01a8c0 at cod>
> Content-Type: text/plain;       charset="us-ascii"
>
> Hello,
>
> What would be the best way to interpolate attributes of a
> vtkUnstructuredGrid? I have a given point (x,y,z) which is not a node of
the
> grid and I want to interpolate the values of point attributes for this
> position.
>
> It is not a visualisation task -- I am rather "abusing" the VTK data
> structures for unstructured mesh generation.
>
> Thanks,
> Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080424/53d04b08/attachment.htm>


More information about the vtkusers mailing list