PathEngine home previous: iMesh::get3DFaceConnection()next: iMesh::get3DFaceVertex()
Contents, API Reference, Interfaces, iMesh, get3DFaceNormal

iMesh::get3DFaceNormal()

Description

Returns a normal vector for a face in the underlying 3d mesh.

Syntax

void get3DFaceNormal(int32_t faceIndex, float& resultX, float& resultY, float& resultZ) const;

Parameters

faceIndexThe index of the 3d face to return the normal for.
resultXReturns the X coordinate of the normal.
resultYReturns the Y coordinate of the normal.
resultZReturns the Y coordinate of the normal.

Remarks

Use iMesh::get3DFaceAtPosition() to obtain a 3D face index.

The returned vector is unit length and points in a direction up from the ground.

C# Mapping

void get3DFaceNormal(int faceIndex, out float resultX, out float resultY, out float resultZ);

Java Mapping

void get3DFaceNormal(int faceIndex, float_OutArgument resultX, float_OutArgument resultY, float_OutArgument resultZ);

Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEnginenext: iMesh::get3DFaceVertex()