PathEngine home previous: iMeshFederation::addExternalRef()next: iMeshFederation::build2DTileMeshWithGround()
Contents, API Reference, Interfaces, iMeshFederation, build2DTileMesh



Generates an iMesh object with simple 2D square bounds for the specified tile in this federation.


std::unique_ptr<iMesh> build2DTileMesh(int32_t tileIndex, int32_t partitioningTileSize, const char *const* options) const


tileIndex The index of the federation tile for which a mesh is being built.
partitioningTileSize Specifies width/height of squares in a simple grid partition.

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

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

See mesh loading options for options that may be passed into this method.

Return Value

A newly created Interface iMesh object constructed to serve as the federation tile mesh for the federation tile with the specified index.


The base ground part of the iMesh object is initialised to a simple square region corresponding to the represented region for the specified mesh federation tile.

Some partioning is then generated for the '2D mapping' part of the iMesh object, controlled by the partitioningTileSize parameter.

The resulting mesh geometry is generated in local coordinates for the tile being generated.

Update: use iMeshFederation::build2DTiledGround() and iMeshFederation::build2DTileMeshWithGround() to replace calls to this method to get 'instancing' of the ground portion of your meshes, with potentially significant reductions in memory footprint.

C# Mapping

Mesh build2DTileMesh(int tileIndex, int partitioningTileSize, string[] options);

Java Mapping

Mesh build2DTileMesh(int tileIndex, int partitioningTileSize, String[] options);

Documentation for PathEngine release 6.03 - Copyright © 2002-2021 PathEnginenext: iMeshFederation::build2DTileMeshWithGround()