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(tSigned32 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.


Documentation for PathEngine release 5.17 - Copyright © 2002-2008 PathEnginenext: iMesh::get3DFaceVertex()