GetClosestCurvePosition2 (NurbsCurveList) *

Description

Returns the curve index, position of the point on it, U value and squared distance from the given position. The data is returned in a 1-dimensional array and is ordered the same as for the NurbsCurveList.GetClosestCurvePosition method output arguments.

Note: This method must be used with scripting languages that don't support arguments passed by reference such as JScript and PerlScript. For more information on getting output arguments, see About Output Argument Arrays.

Scripting Syntax

NurbsCurveList.GetClosestCurvePosition2( Position )

C# Syntax

Object NurbsCurveList.GetClosestCurvePosition2( Object in_vPosition );

Parameters

Parameter

Type

Description

Position

SIVector3 or 1D Array of 3 elements

A position expressed in the NurbsCurveList object frame of reference.

Return Value

Array containing the curve index (Long), squared distance from the given position (Double), U value (Double) and the position of the point on the curve (SIVector3).

See Also

NurbsCurveList.GetClosestCurvePosition

NurbsCurve.EvaluatePosition

EvaluateCurveAt

Examples

• See NurbsCurveList.GetClosestCurvePosition2.1.js

• See NurbsCurveList.GetClosestCurvePosition2.2.js



Autodesk Softimage 2011