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