Expand description
Building one navmesh tile end to end (spec 4, 5, 7).
tile_config derives the Recast configuration of a cell class, and build_tile runs every
step of spec 5.4 on one tile input: terrain, objects, span filters, compact heightfield, area
passes, regions, contours, polygon mesh, flags, the extra section and the Detour tile blob.
The build raises no warnings: the counts it returns (stray part ids, obstacles) are for the caller to report.
Structs§
- Build
Options - Options of a tile build.
- Tile
Config - The Recast configuration derived from the world and a cell class (spec 4). Sizes in voxels unless noted.
Enums§
- Door
Policy - What the door states of the tiles are (spec 5.1): which door parts start disabled.
- Tile
Outcome - The result of building one tile.
Constants§
- MAX_
SPANS - The most spans one tile heightfield may hold (hostile input: stacked surfaces could otherwise
need gigabytes). Past it the tile fails. A
Spanis 10 bytes, so this bounds the span data of a tile at 2^26 * 10 B = 640 MiB (before the slack of the column vectors); a field added toSpanraises it.
Functions§
- build_
tile - Builds the Detour tile of one tile input (spec 5).
- tile_
config - The configuration of tiles of
cell_class(spec 4). All arithmetic is inf32as the spec writes it. A degenerate cell class (no cells) gives non-finite sizes, whichbuild_tilerejects.