getClosestPointIndexOnTriangle

Find a triangle touching the point px, py, pz, then return the vertex closest to the search point

Return

A structure containing the index of the closest point, the squared distance from the queried point to the point that is found, the distance from the queried point to the point that is found, the queried position in local space, the closest position in local space

Parameters

px

The x component of the point to query

py

The y component of the point to query

pz

The z component of the point to query

See also