PathEngine home previous: iMesh::constructPath()next: iMesh::findClosestUnobstructedPosition()
Contents, API Reference, Interfaces, iMesh, constructPath_Reversed

iMesh::constructPath_Reversed()

Description

Provided to enable Interface iPath objects to be constructed directly from a sequence of positions.

Syntax

iPath* constructPath_Reversed(const cPosition* positionsBuffer, const tSigned32* connectionIndicesBuffer, tSigned32 pathLength) const;

Parameters

positionsBufferA pointer to a sequence of (pathLength) positions to be used to construct the path.
connectionIndicesBufferA pointer to a sequence of (pathLength - 1) connection indices, or a null pointer (indicating that the path contains no off-mesh connections).
pathLengthThe number of points in the path. Must be greater than zero.

Return Value

A newly created Interface iPath, with positions in the opposite order to the positions passed in.

Remarks

The created Interface iPath can be explicitly deleted when no longer required, but will also be deleted when this mesh is destroyed. In either case the pointer can no longer be used.

Refer to Working with Off‑Mesh Connections for more information about connection indices.

See Also

iMesh::constructPath()


Documentation for PathEngine release 5.29 - Copyright © 2002-2012 PathEnginenext: iMesh::findClosestUnobstructedPosition()