PathEngine home previous: iMeshFederation::buildTileMeshFromContent()next: iMeshFederation::coordinatesAreInsideRange()
Contents, API Reference, Interfaces, iMeshFederation, buildTileMeshFromLocalGroundTiles

iMeshFederation::buildTileMeshFromLocalGroundTiles()

Description

Generates an iMesh object for the specified tile in this federation, from local ground mesh tiles.

Syntax

iMesh* buildTileMeshFromLocalGroundTiles(tSigned32 tileIndex, const iSourceTiling* tiling, const iMesh* const* meshPointers, tSigned32 numberOfMeshes, const char *const* options) const;

Parameters

tileIndexThe index of the federation tile for which a mesh is being built.
tiling An iSourceTiling object defining the position and placement of ground tiles.
meshPointers An array of pointers to mesh objects.
numberOfMeshesThe size of the array pointed to by meshPointers.
options

A set of named attributes to control how the geometry is processed.

Some mesh loading options may be passed into this method, to affect the final ground mesh ground mesh construction phase.

Refer to Handling Attributes for information about passing sets of named attributes.

Return Value

If the local ground tiles contain geometry within the represented region range for the federation tile being built then a newly created Interface iMesh object is constructed from this geometry to serve as the federation tile mesh for the federation tile with the specified index.
Otherwise, if there is no geometry in the relevant range, zero will be returned.

Remarks

The set of meshes to load and pass into this method should be determined by calling iMeshFederation::getGroundTilesOverlapped(), with the same tiling object and federation tile index as used in this query.
The mesh pointers should appear in the same order as returned by that method, with zero pointers where ground tiles do not exist (because there is no geometry local to that tile).

No pointers to the mesh objects passed into this method are retained after the query completes, and these mesh objects can then be deleted safely by the calling application.

Note that the source ground tiles are in 'federation world coordinates', with the resulting mesh geometry being generated in local coordinates for the tile being generated.

The created Interface iMesh can be explicitly deleted when no longer required, but will also be deleted if iPathEngine::deleteAllObjects() is called - in either case the pointer can no longer be used. Any meshes not deleted will be cleaned up automatically when PathEngine is shut down.


Documentation for PathEngine release 5.16 - Copyright © 2002-2008 PathEnginenext: iMeshFederation::coordinatesAreInsideRange()