SurfaceEvaluator.getNormalAtPoint Method

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

Description

Gets the surface normal at a point on the surface.

Syntax

"surfaceEvaluator_var" is a variable referencing a SurfaceEvaluator object.

(returnValue, normal) = surfaceEvaluator_var.getNormalAtPoint(point)

#include <Core/Geometry/SurfaceEvaluator.h

// Declare the output arguments.
Ptr<Point3D> point;
Ptr<Vector3D> normal;
boolean returnValue = surfaceEvaluator_var->getNormalAtPoint(point, normal);

Return Value

Type Description
boolean Returns true if the normal was successfully returned.

Parameters

Name Type Description
point Point3D The point to return the normal at. For reliable results the point should lie on the surface.
normal Vector3D The output normal for the point on the surface.

Version

Introduced in version August 2014