Oliver,<br><br>it depends what you mean by the best way...<br>Piecewise linear interpolation is continuous, and not expensive once you know which cell the point belongs to. <br><br>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.<br>
<br>Marie-Gabrielle Vallet<br><br>> Date: Thu, 24 Apr 2008 13:45:44 +0200<br>>
From: "Oliver Gloth" <<a href="mailto:oliver.gloth@engits.com">oliver.gloth@engits.com</a>><br>>
Subject: [vtkusers] interpolation<br>>
To: "'vtkusers'" <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>>
Message-ID: <005901c8a600$bada5220$0b01a8c0@cod><br><div id="1es0" class="ArwC7c ckChnd">>
Content-Type: text/plain; charset="us-ascii"<br>
> <br>>
Hello,<br>
> <br>>
What would be the best way to interpolate attributes of a<br>>
vtkUnstructuredGrid? I have a given point (x,y,z) which is not a node of the<br>>
grid and I want to interpolate the values of point attributes for this<br>>
position.<br>
> <br>>
It is not a visualisation task -- I am rather "abusing" the VTK data<br>>
structures for unstructured mesh generation.<br>
> <br>>
Thanks,<br>>
Oliver<br>
</div>