| PathEngine home | previous: | next: |
A helper method for stripping out unconnected ground mesh pieces, based on a supplied set of 'root positions'.
iMesh* buildMeshByCopyingConnectedGround(const iMesh* baseMesh, const cPosition* positionBuffer, tUnsigned32 positionBufferSize, const char *const* options); |
| baseMesh | An iMesh object from which ground parts are to be copied. | ||
| positionBuffer | Pointer to an array of ground positions. This buffer is not retained after the call and can subsequently be safely deleted. | ||
| positionBufferSize | The size of the array pointed to by positionBuffer. | ||
| options |
A set of named attributes to control exactly how the mesh result is created. |
This method essentially performs a flood fill from the supplied set of root positions, based on triangle to triangle connectivity, and then constructs a new iMesh object to include only the parts of the base mesh that are encountered during this flood fill operation.
At least one position must be supplied, and each supplied position must be a valid positions on the base mesh.
(This then guarantees that the iMesh result cannot be empty.)
This method just copies ground geometry and face attributes from the base mesh,
and does not copy other elements associated with the base mesh,
such as burnt-in context information, named obstacles, and so on.
(This method is essentially provided as a helper method for use during certain content processing setups,
and any additional content elements that are required should be added to the resulting mesh after this method has completed.)
Important note: iMesh objects that are created for use as tiles in
mesh federation include some additional information relating to this tiling,
including information about how to translate to overlapping ground surfaces in adjacent tiles.
This information is not copied by this method, and the iMesh object
that is returned is not then suitable for use as part of an mesh federation tiling.
The created
| Documentation for PathEngine release 5.24 - Copyright © 2002-2010 PathEngine | next: |