NEW IN R20

Cinema 4D Prime XPresso XPresso Nodes General Get Nearest Point on Spline Operator Function available in CINEMA 4D Prime, Visualize, Broadcast, Studio & BodyPaint 3D

Get Nearest Point on Spline Operator Basic ParameterParameter

Use this setting to link the spline on which the position should be calculated.

Enter the position whose nearest distance to the spline should be calculated here.

Internally, the number of positions defined here will be distributed along the spline and the shortest distance between points will be ascertained. For very long splines it might be necessary to increase this value in order to increase precision.

• Spline Segment [-2147483648..2147483647]

If you have splines with multiple segments, this setting can be used to define which segment the Node should use for its calculation.

Enable this option if a spline is made up of multiple segments so the Node will include all segments. Otherwise the number of segments defined by Spline Segment will be applied.

Spline Position [-∞..+∞]•

Nearest Point [XYZ ]•

These output ports supply the position on the spline that lies nearest to the point defined by Global Position. This is done as follows:

- Spline Position: As a value between 0 and 1 (spline start to spline end)
- Nearest Point: As a vector defined as a 3D position in space.

Nearest Segment [-2147483648..2147483647]•

This setting outputs the index number of the nearest segment.

This output port outputs the tangent at the nearest point as a directional vector.