Contents, API Reference, Interfaces, iMeshFederation, translatePositionFromSourceTile
Translates a position from the source tiling used to construct the federation to a federation tile mesh.
cPosition translatePositionFromSourceTile(const cPosition& fromPosition, const iSourceTiling* sourceTiling, const iMesh* sourceTile, const iMesh* federationTile) const;
The position to be translated.|
This must be a valid position on the mesh passed in for sourceTile.
The source tiling which was used to construct federationTile, and which contains sourceTile.
The source tile to translate the position from.
The federation tile to translate the position from.|
The position to be translated must be in the represented region for this tile
(as can be queried with iMeshFederation::getRepresentedRegion_World()).
The iMesh object passed in for federationTile must be a mesh which was created for this federation, with the iMeshFederation::buildTileMeshFromLocalGroundTiles() tile mesh creation method.
A position equivalent to fromPosition, but on the specified federation tile mesh.
Federation tiles overlap, so in the general case a source tiling position will map to multiple federation tile positions.
The iMeshFederation::getRepresentedRegionsOverlapped() method can then be used (with minimum and maximum values both set to the same coordinate) to obtain a set of potential target federation tiles
for a given source tiling position.
PathEngine.Position translatePositionFromSourceTile(PathEngine.Position fromPosition, SourceTiling sourceTiling, Mesh sourceTile, Mesh federationTile);
Position translatePositionFromSourceTile(Position fromPosition, SourceTiling sourceTiling, Mesh sourceTile, Mesh federationTile);