[vtkusers] How to interpolate?

Shashwath T.R. trshash at gmail.com
Thu Sep 23 04:05:42 EDT 2010


Hi Rakesh,

Have a look at EvaluatePosition on vtkCell:
http://www.vtk.org/doc/nightly/html/classvtkCell.html#a463203095c011df36980b4677e8825b0

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.

Regards,
Shash

On Wed, Sep 22, 2010 at 1:59 PM, rakesh patil <prakeshofficial at gmail.com>wrote:

> 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
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100923/4c121839/attachment.htm>


More information about the vtkusers mailing list