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

iMesh::generateRandomPositionLocally()

Description

Generates a random position on the region of a mesh local to the specified centre position.

Syntax

cPosition generateRandomPositionLocally(const cPosition& centre, tSigned32 range) const;

Parameters

centre Specifies the centre of the region in which to generate a random position.
range Specifies the size of the region in which to generate a random position.
Must be greater than zero.

Return Value

A valid, randomly generated position on this mesh and with x and y components within +/- range of centre.

See Also

iMesh::generateRandomPosition()
Documentation for PathEngine release 5.16 - Copyright © 2002-2008 PathEnginenext: iMesh::get3DFaceAtPosition()