Recast Navigation
Navigation-mesh Toolset for Games
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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.
 
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.
 
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.
 

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.