90 [[nodiscard]]
int getTriCount()
const {
return static_cast<int>(
tris.size()) / 3; }
98 bool hasBuildSettings =
false;
128 bool raycastMesh(
float* src,
float* dst,
float& tmin)
const;
132 void addOffMeshConnection(
const float* startPos,
const float* endPos,
float radius,
unsigned char bidirectional,
unsigned char area,
unsigned short flags);
139 void addConvexVolume(
const float* verts,
int nverts,
float minh,
float maxh,
unsigned char area);
145 bool loadMesh(
rcContext* ctx,
const std::string& filepath);
146 bool loadGeomSet(
rcContext* ctx,
const std::string& filepath);
147 bool loadGeomSet(
rcContext* ctx,
char* buffer,
size_t bufferLen);
149 void clearOffMeshConnections()
Provides an interface for optional logging and performance tracking of the Recast build process.
Definition Recast.h:115
Definition InputGeom.h:41
float agentHeight
Agent height in world units.
Definition InputGeom.h:47
float navMeshBMin[3]
Bounds of the area to mesh.
Definition InputGeom.h:70
int vertsPerPoly
Definition InputGeom.h:62
int partitionType
Partition type, see SamplePartitionType.
Definition InputGeom.h:68
float regionMinSize
Region minimum size in voxels.
Definition InputGeom.h:55
float agentMaxSlope
Agent max slope in degrees.
Definition InputGeom.h:53
float detailSampleMaxError
Detail sample max error in voxel heights.
Definition InputGeom.h:66
float agentMaxClimb
Agent max climb in world units.
Definition InputGeom.h:51
float edgeMaxError
Edge max error in voxels.
Definition InputGeom.h:61
float agentRadius
Agent radius in world units.
Definition InputGeom.h:49
float cellSize
Cell size in world units.
Definition InputGeom.h:43
float navMeshBMax[3]
Definition InputGeom.h:71
float tileSize
Size of the tiles in voxels.
Definition InputGeom.h:73
float detailSampleDist
Detail sample distance in voxels.
Definition InputGeom.h:64
float cellHeight
Cell height in world units.
Definition InputGeom.h:45
float edgeMaxLen
Edge max length in world units.
Definition InputGeom.h:59
float regionMergeSize
Region merge size in voxels. regionMergeSize = sqrt(regionMergeArea)
Definition InputGeom.h:57
Definition InputGeom.h:32
float hmax
Definition InputGeom.h:36
float hmin
Definition InputGeom.h:35
float verts[MAX_CONVEXVOL_PTS *3]
Definition InputGeom.h:33
int nverts
Definition InputGeom.h:34
int area
Definition InputGeom.h:37
Definition InputGeom.h:77
std::vector< float > verts
Definition InputGeom.h:78
int getVertCount() const
Definition InputGeom.h:89
std::vector< float > normals
Definition InputGeom.h:80
void reset()
Definition InputGeom.h:82
int getTriCount() const
Definition InputGeom.h:90
void readFromObj(char *buf, size_t bufLen)
Definition InputGeom.cpp:249
std::vector< int > tris
Definition InputGeom.h:79
A spatially-partitioned mesh (k/d tree), where each node contains at max trisPerChunk triangles.
Definition PartitionedMesh.h:26
Abstract debug draw interface.
Definition DebugDraw.h:35