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 nameParentsClassificationMFn typeCompatible function sets

Attributes (19)

closestFaceIndex, closestVertexIndex, inMesh, inPosition, inPositionX, inPositionY, inPositionZ, inputMatrix, 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
inputMatrix (ix) matrixNULLoutputinputconnectablestorable
Input transformation matrix of the mesh, which allows the closest point to be calculated in world space coords. This defaults to the identity matrix, so if it's not set to something else, the closest point will be calculated in the mesh's local space.
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.