Hi Rakesh,<br><br>Have a look at EvaluatePosition on vtkCell: <a href="http://www.vtk.org/doc/nightly/html/classvtkCell.html#a463203095c011df36980b4677e8825b0">http://www.vtk.org/doc/nightly/html/classvtkCell.html#a463203095c011df36980b4677e8825b0</a><br>
<br>Among other things, it will return the interpolation weights of a point on a cell. For a triangle, you'll get three weights, and you can use those to interpolate the values from each of the points.<br><br>Regards,<br>
Shash<br><br><div class="gmail_quote">On Wed, Sep 22, 2010 at 1:59 PM, rakesh patil <span dir="ltr"><<a href="mailto:prakeshofficial@gmail.com">prakeshofficial@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<span style="font-family: 'Times New Roman'; font-size: medium;"><pre><font face="tahoma, sans-serif"><span style="font-size: small;">Hello,
I have three nodes of an element (triangle). The z value of all these three
nodes are stored as bathymetry(depth value). Now using these three nodes,
can I get the depth value of any other point inside the same triangle?
I have one function, but it takes some time. So i wanted to know whether
there is any inbuilt function in VTK to do this which may be much faster
compared to one what i have.
Thanks
Regards
Rakesh Patil</span></font></pre></span>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>