wrap.Geom.pointToPointOnTriangle

Geom.pointToPointOnTriangle(x, y, z, maxDistance=0.0)

Convert arbitrary point in 3D to wrap.PointOnTriangle by projecting point onto closest triangle of mesh.

If length of projection is bigger than maxDistance then ValueError exception raised.

Parameters:

x,y,z : world-space 3D coordinates of point

maxDistance : maximum absolute distance from point to the surface. Zero (default) value means than projection length may be infinite.

Returns:

instance of wrap.PointOnTriangle nearest to point (x,y,z)

Notes

This function was updated in 1.3.3.