Recast Navigation
Navigation-mesh Toolset for Games
dtMeshHeader Struct Reference

Provides high level information related to a dtMeshTile object. More...

#include <DetourNavMesh.h>

Public Attributes

int magic
 Tile magic number. (Used to identify the data format.) More...
 
int version
 Tile data format version number. More...
 
int x
 The x-position of the tile within the dtNavMesh tile grid. (x, y, layer) More...
 
int y
 The y-position of the tile within the dtNavMesh tile grid. (x, y, layer) More...
 
int layer
 The layer of the tile within the dtNavMesh tile grid. (x, y, layer) More...
 
unsigned int userId
 The user defined id of the tile. More...
 
int polyCount
 The number of polygons in the tile. More...
 
int vertCount
 The number of vertices in the tile. More...
 
int maxLinkCount
 The number of allocated links. More...
 
int detailMeshCount
 The number of sub-meshes in the detail mesh. More...
 
int detailVertCount
 The number of unique vertices in the detail mesh. (In addition to the polygon vertices.) More...
 
int detailTriCount
 The number of triangles in the detail mesh. More...
 
int bvNodeCount
 The number of bounding volume nodes. (Zero if bounding volumes are disabled.) More...
 
int offMeshConCount
 The number of off-mesh connections. More...
 
int offMeshBase
 The index of the first polygon which is an off-mesh connection. More...
 
float walkableHeight
 The height of the agents using the tile. More...
 
float walkableRadius
 The radius of the agents using the tile. More...
 
float walkableClimb
 The maximum climb height of the agents using the tile. More...
 
float bmin [3]
 The minimum bounds of the tile's AABB. [(x, y, z)]. More...
 
float bmax [3]
 The maximum bounds of the tile's AABB. [(x, y, z)]. More...
 
float bvQuantFactor
 The bounding volume quantization factor. More...
 

Description

Provides high level information related to a dtMeshTile object.

Member Data Documentation

◆ bmax

float dtMeshHeader::bmax[3]

The maximum bounds of the tile's AABB. [(x, y, z)].

◆ bmin

float dtMeshHeader::bmin[3]

The minimum bounds of the tile's AABB. [(x, y, z)].

◆ bvNodeCount

int dtMeshHeader::bvNodeCount

The number of bounding volume nodes. (Zero if bounding volumes are disabled.)

◆ bvQuantFactor

float dtMeshHeader::bvQuantFactor

The bounding volume quantization factor.

This value is used for converting between world and bounding volume coordinates. For example:

const float cs = 1.0f / tile->header->bvQuantFactor;
const dtBVNode* n = &tile->bvTree[i];
if (n->i >= 0)
{
// This is a leaf node.
float worldMinX = tile->header->bmin[0] + n->bmin[0]*cs;
float worldMinY = tile->header->bmin[0] + n->bmin[1]*cs;
// Etc...
}
Bounding volume node.
Definition: DetourNavMesh.h:216
unsigned short bmin[3]
Minimum bounds of the node's AABB. [(x, y, z)].
Definition: DetourNavMesh.h:217
int i
The node's index. (Negative for escape sequence.)
Definition: DetourNavMesh.h:219

◆ detailMeshCount

int dtMeshHeader::detailMeshCount

The number of sub-meshes in the detail mesh.

◆ detailTriCount

int dtMeshHeader::detailTriCount

The number of triangles in the detail mesh.

◆ detailVertCount

int dtMeshHeader::detailVertCount

The number of unique vertices in the detail mesh. (In addition to the polygon vertices.)

◆ layer

int dtMeshHeader::layer

The layer of the tile within the dtNavMesh tile grid. (x, y, layer)

◆ magic

int dtMeshHeader::magic

Tile magic number. (Used to identify the data format.)

◆ maxLinkCount

int dtMeshHeader::maxLinkCount

The number of allocated links.

◆ offMeshBase

int dtMeshHeader::offMeshBase

The index of the first polygon which is an off-mesh connection.

◆ offMeshConCount

int dtMeshHeader::offMeshConCount

The number of off-mesh connections.

◆ polyCount

int dtMeshHeader::polyCount

The number of polygons in the tile.

◆ userId

unsigned int dtMeshHeader::userId

The user defined id of the tile.

◆ version

int dtMeshHeader::version

Tile data format version number.

◆ vertCount

int dtMeshHeader::vertCount

The number of vertices in the tile.

◆ walkableClimb

float dtMeshHeader::walkableClimb

The maximum climb height of the agents using the tile.

◆ walkableHeight

float dtMeshHeader::walkableHeight

The height of the agents using the tile.

◆ walkableRadius

float dtMeshHeader::walkableRadius

The radius of the agents using the tile.

◆ x

int dtMeshHeader::x

The x-position of the tile within the dtNavMesh tile grid. (x, y, layer)

◆ y

int dtMeshHeader::y

The y-position of the tile within the dtNavMesh tile grid. (x, y, layer)


The documentation for this struct was generated from the following file: