Recast Navigation
Navigation-mesh Toolset for Games
ChunkyTriMesh.h File Reference

Go to the source code of this file.

Classes

struct  rcChunkyTriMeshNode
 
struct  rcChunkyTriMesh
 

Functions

bool rcCreateChunkyTriMesh (const float *verts, const int *tris, int ntris, int trisPerChunk, rcChunkyTriMesh *cm)
 Creates partitioned triangle mesh (AABB tree), where each node contains at max trisPerChunk triangles. More...
 
int rcGetChunksOverlappingRect (const rcChunkyTriMesh *cm, float bmin[2], float bmax[2], int *ids, const int maxIds)
 Returns the chunk indices which overlap the input rectable. More...
 
int rcGetChunksOverlappingSegment (const rcChunkyTriMesh *cm, float p[2], float q[2], int *ids, const int maxIds)
 Returns the chunk indices which overlap the input segment. More...
 

Function Documentation

◆ rcCreateChunkyTriMesh()

bool rcCreateChunkyTriMesh ( const float *  verts,
const int *  tris,
int  ntris,
int  trisPerChunk,
rcChunkyTriMesh cm 
)

Creates partitioned triangle mesh (AABB tree), where each node contains at max trisPerChunk triangles.

◆ rcGetChunksOverlappingRect()

int rcGetChunksOverlappingRect ( const rcChunkyTriMesh cm,
float  bmin[2],
float  bmax[2],
int *  ids,
const int  maxIds 
)

Returns the chunk indices which overlap the input rectable.

◆ rcGetChunksOverlappingSegment()

int rcGetChunksOverlappingSegment ( const rcChunkyTriMesh cm,
float  p[2],
float  q[2],
int *  ids,
const int  maxIds 
)

Returns the chunk indices which overlap the input segment.