PathEngine home previous: iMesh::generateRandomPosition()next: iMesh::generateRandomPositionLocally()
Contents, API Reference, Interfaces, iMesh, generateRandomPositionInSection



Generates a random position in the specified section.


cPosition generateRandomPositionInSection(int32_t sectionID) const;


sectionID The section within which a random position should be generated.
(Must not be -1.)

Return Value

This method will usually succeed, in which case a valid position in the specified section is returned.
The call may fail, in which case an explicitly invalid position will be returned (cell set to -1).
Calling code should always check for this case.
Except for in pathological circumstances, calling this method repeatedly should eventually return a valid position.

C# Mapping

PathEngine.Position generateRandomPositionInSection(int sectionID);

Java Mapping

Position generateRandomPositionInSection(int sectionID);

Documentation for PathEngine release 6.00 - Copyright © 2002-2016 PathEnginenext: iMesh::generateRandomPositionLocally()