Go to: Related nodes. Attributes.

This node returns the closest point of an (x,y,z) point (attribute "inPosition") to a curve (given by the attribute "inputCurve"). You can query the closest (x,y,z) point (attribute "position") or you can query the closest curvep parameter (attribute "parameter").

Node nameParentsClassificationMFn typeCompatible function sets
nearestPointOnCurveabstractBaseCreategeometrykNearestPointOnCurvekBase
kNamedObject
kDependencyNode
kNearestPointOnCurve

Related nodes

closestPointOnSurface, closestPointOnMesh

Attributes (11)

inPosition, inPositionX, inPositionY, inPositionZ, inputCurve, parameter, position, positionX, positionY, positionZ, result

Long name (short name)TypeDefaultFlags
inputCurve (ic) nurbsCurveNULLoutputinputconnectable
The input curve 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 and parameter
position (p) double30.0, 0.0, 0.0outputconnectable
The closest (x,y,z) position (in result compound)
positionX (px) distance (double)0.0cmoutputconnectable
Computed X value of closest position
positionY (py) distance (double)0.0cmoutputconnectable
Computed Y value of closest position
positionZ (pz) distance (double)0.0cmoutputconnectable
Computed Z value of closest position
parameter (pr) double0.0outputconnectable
The parameter value on the curve at the closest point