SurfaceEvaluator.getParameterAtPoint Method

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

Description

Get the parameter position that correspond to a point on the surface. For reliable results, the point should lie on the surface within model tolerance. If the point does not lie on the surface, the parameter of the nearest point on the surface will generally be returned.

Syntax

"surfaceEvaluator_var" is a variable referencing a SurfaceEvaluator object.

(returnValue, parameter) = surfaceEvaluator_var.getParameterAtPoint(point)

#include <Core/Geometry/SurfaceEvaluator.h

// Declare the output arguments.
Ptr<Point3D> point;
Ptr<Point2D> parameter;
boolean returnValue = surfaceEvaluator_var->getParameterAtPoint(point, parameter);

Return Value

Type Description
boolean Returns true of the parameter was successfully returned.

Parameters

Name Type Description
point Point3D The point to get the curve parameter value at.
parameter Point2D The output parameter position corresponding to the point.

Version

Introduced in version August 2014