Go to: Related nodes. Attributes.

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

Node nameParentsClassificationMFn typeCompatible function sets
closestPointOnSurfaceabstractBaseCreategeometrykClosestPointOnSurfacekBase
kNamedObject
kDependencyNode
kClosestPointOnSurface

Related nodes

pointOnSurfaceInfo, pointOnCurveInfo

Attributes (12)

inPosition, inPositionX, inPositionY, inPositionZ, inputSurface, parameterU, parameterV, position, positionX, positionY, positionZ, result

Long name (short name)TypeDefaultFlags
inPosition (ip) double30.0, 0.0, 0.0outputinputconnectablestorable
Input reference point
inPositionX (ipx) distance (double)double0.0cmoutputinputconnectablestorable
Input X value of reference position
inPositionY (ipy) distance (double)double0.0cmoutputinputconnectablestorable
Input Y value of reference position
inPositionZ (ipz) distance (double)double0.0cmoutputinputconnectablestorable
Input Z value of reference position
inputSurface (is) nurbsSurfacenullptroutputinputconnectable
The input surface for the info
result (r) compoundn/aoutputconnectable
All results - container holding closest point, u and v parameter values
position (p) double30.0, 0.0, 0.0outputconnectable
The closest (x,y,z) position (in result compound)
positionX (px) distance (double)double0.0cmoutputconnectable
Computed X value of closest position
positionY (py) distance (double)double0.0cmoutputconnectable
Computed Y value of closest position
positionZ (pz) distance (double)double0.0cmoutputconnectable
Computed Z value of closest position
parameterU (u) doubledouble0.0outputconnectable
The U parameter value on the surface at the closest point
parameterV (v) doubledouble0.0outputconnectable
The V parameter value on the surface at the closest point