CurveEvaluator3D.getParametersAtPoints Method

Parent Object: CurveEvaluator3D
Defined in namespace "adsk::core" and the header file is <Core/Geometry/CurveEvaluator3D.h>

Description

Get the parameter positions that correspond to a set of points on the curve. For reliable results, the points should lie on the curve within model tolerance. If the points do not lie on the curve, the parameter of the nearest point on the curve will generally be returned.

Syntax

"curveEvaluator3D_var" is a variable referencing a CurveEvaluator3D object.

(returnValue, parameters) = curveEvaluator3D_var.getParametersAtPoints(points)

#include <Core/Geometry/CurveEvaluator3D.h

// Declare the output arguments.
Point3D[] points;
double[] parameters;
boolean returnValue = curveEvaluator3D_var->getParametersAtPoints(points, parameters);

Return Value

Type Description
boolean Returns true if the parameters were successfully returned.

Parameters

Name Type Description
points Point3D[] An array of points to get the curve parameter values at.
parameters double[] The output array of parameter positions corresponding to the set of points. The length of this array will be equal to the length of the points array specified.

Version

Introduced in version August 2014