PathEngine home previous: iPathEngine::buildMeshFromContent()next: iPathEngine::buildMeshFromGroundTiles_IGround()
Contents, API Reference, Interfaces, iPathEngine, buildMeshFromGroundTiles

iPathEngine::buildMeshFromGroundTiles()

Description

Constructs a single iMesh object by connecting multiple tiled ground pieces together at tile borders.

Syntax

std::unique_ptr<iMesh> buildMeshFromGroundTiles(const iSourceTiling& tiling, const iMesh* const * meshes_Buffer, uint32_t meshes_BufferEntries, const char *const* options)

Parameters

tiling An iSourceTiling object defining the position and placement of the ground tiles.
meshes_Buffer, meshes_BufferEntries (See Passing Arrays.) Pointers to iMesh objects for local ground tiles, or null pointers for tiles which are empty.
options

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

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

Return Value

If the ground tiles passed in are non empty then a newly created Interface iMesh object is returned, created by connecting the ground tiles together at tile borders.
If the ground tiles are empty then a zero pointer will be returned.

Remarks

This method supports tiled content processing, in the case where a single world mesh result is desired.
When using PathEngine's 'mesh federations' feature, iMeshFederation::buildTileMeshFromLocalGroundTiles() or iMeshFederation::buildTileMeshFromLocalGroundTiles_IGround() can be used instead, to build a PathEngine 'mesh federation' directly from the tiled ground pieces.

The set of meshes passed in should correspond with the set of tiles in the supplied tiling object, and these meshes should be supplied in the same order as tiles in that tiling.
(The parameter specifying the size of the array is essentially a check value, as this must be equivalent to the tiling size.)
Zero pointers should be passed in for any tiles which are empty (i.e. for which there is no world geometry overlapping the tile region).

C# Mapping

Mesh buildMeshFromGroundTiles(SourceTiling tiling, Mesh[] meshes, string[] options);

Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEnginenext: iPathEngine::buildMeshFromGroundTiles_IGround()