PathEngine home previous: iMesh::positionFor3DPointF()next: iMesh::positionInSection()
Contents, API Reference, Interfaces, iMesh, positionFor3DPoint_ExcludeTerrain

iMesh::positionFor3DPoint_ExcludeTerrain()

Description

Used for resolving anchor positions in the case where the anchor should not resolve to 'terrain stand-in' geometry.

Syntax

cPosition positionFor3DPoint_ExcludeTerrain(const tSigned32* point, tSigned32 numberOfTerrainLayers) const;

Parameters

point This parameter must point to an array of three elements.
These are interpreted as x,y,z, where z is height.
numberOfTerrainLayers Specifies the number of sectionID values that should be excluded from the query.

Return Value

A cPosition representing a point on the mesh directly underneath the specified 3D point.
If there is no such position then an explicitly invalid position is returned (i.e. a cPosition with cell set to -1).

Remarks

Behaves exactly the same as iMesh::positionFor3DPoint() except that faces with certain values for the sectionID face attribute are excluded from the query.

Reserved values for sectionID start at zero, so passing 1 into numberOfTerrainLayers excludes faces where sectionID == 0, passing 2 into numberOfTerrainLayers excludes faces where sectionID == 0 || sectionID == 1, and so on.

Once terrain callbacks have been supplied by the client application position resolution methods will transparently resolve positions to both terrain and non-terrain parts of a mesh.
So, in most cases it's not necessary to use this method.
This method is designed specifically for use at content time, in cases where access to terrain detail may not be available.


Documentation for PathEngine release 5.24 - Copyright © 2002-2010 PathEnginenext: iMesh::positionInSection()