Go to: Attributes.

 This node returns the closest point of an (x,y,z) point (attribute
 "inPosition") to a mesh (given by the attribute "inputMesh").
 You can query the closest
 (x,y,z) point (attribute "position") or you can query the closest
 mesh (u,v) point (given by attributes "parameterU" and "parameterV").

Node nameParentsMFn typeCompatible function sets
closestPointOnMeshdependNodekClosestPointOnMeshkBase
kNamedObject
kDependencyNode
kClosestPointOnMesh

Attributes (18)

closestFaceIndex, closestVertexIndex, inMesh, inPosition, inPositionX, inPositionY, inPositionZ, normal, normalX, normalY, normalZ, parameterU, parameterV, position, positionX, positionY, positionZ, result

Long name (short name)TypeDefaultFlags
inMesh (im) meshNULLoutputinputconnectable
The input mesh for the info
inPosition (ip) double30.0, 0.0, 0.0outputinputconnectablestorable
Input reference point
inPositionX (ipx) distance (double)0.0cmoutputinputconnectablestorable
Input X value of reference position
inPositionY (ipy) distance (double)0.0cmoutputinputconnectablestorable
Input Y value of reference position
inPositionZ (ipz) distance (double)0.0cmoutputinputconnectablestorable
Input Z value of reference position
result (r) compoundn/aoutputconnectable
All results - container holding closest point, its normal, u and v parameter values and closest face index.
position (p) double30.0, 0.0, 0.0outputconnectable
The closest (x,y,z) point (in result compound)
positionX (px) distance (double)0.0cmoutputconnectable
Computed X value of closest point
positionY (py) distance (double)0.0cmoutputconnectable
Computed Y value of closest point
positionZ (pz) distance (double)0.0cmoutputconnectable
Computed Z value of closest point
parameterU (u) double0.0outputconnectable
The U parameter value on the mesh at the closest point
parameterV (v) double0.0outputconnectable
The V parameter value on the mesh at the closest point
normal (n) double30.0, 0.0, 0.0outputconnectable
The normal of the point (in result compound)
normalX (nx) distance (double)0.0cmoutputconnectable
X normal of closest point
normalY (ny) distance (double)0.0cmoutputconnectable
Y normal of closest point
normalZ (nz) distance (double)0.0cmoutputconnectable
Z normal of closest point
closestFaceIndex (f) integer-1outputconnectable
Index of the face on which the closest point lies.
closestVertexIndex (vt) integer-1outputconnectable
Index of the vertex closest to position on faceIndex.