|
Recast Navigation
1.0.35
|
Go to the source code of this file.
Functions | |
Heightfield Functions | |
| |
| void | rcCalcBounds (const float *verts, int nv, float *bmin, float *bmax) |
| Calculates the bounding box of an array of vertices. More... | |
| void | rcCalcGridSize (const float *bmin, const float *bmax, float cs, int *w, int *h) |
| Calculates the grid size based on the bounding box and grid cell size. More... | |
| bool | rcCreateHeightfield (rcContext *ctx, rcHeightfield &hf, int width, int height, const float *bmin, const float *bmax, float cs, float ch) |
| Initializes a new heightfield. More... | |
| void | rcMarkWalkableTriangles (rcContext *ctx, const float walkableSlopeAngle, const float *verts, int nv, const int *tris, int nt, navAreaMask *areaMasks) |
| Sets the area id of all triangles with a slope below the specified value to RC_WALKABLE_AREA. More... | |
| void | rcClearUnwalkableTriangles (rcContext *ctx, const float walkableSlopeAngle, const float *verts, int nv, const int *tris, int nt, navAreaMask *areaMasks) |
| Sets the area id of all triangles with a slope greater than or equal to the specified value to RC_NULL_AREA. More... | |
| void | rcAddSpan (rcContext *ctx, rcHeightfield &hf, const int x, const int y, const unsigned short smin, const unsigned short smax, const navAreaMask areaMask, const int flagMergeThr) |
| Adds a span to the specified heightfield. More... | |
| void | rcRasterizeTriangle (rcContext *ctx, const float *v0, const float *v1, const float *v2, const navAreaMask areaMask, rcHeightfield &solid, const int flagMergeThr=1) |
| Rasterizes a triangle into the specified heightfield. More... | |
| void | rcRasterizeTriangles (rcContext *ctx, const float *verts, const int nv, const int *tris, const navAreaMask *areaMasks, const int nt, rcHeightfield &solid, const int flagMergeThr=1) |
| Rasterizes an indexed triangle mesh into the specified heightfield. More... | |
| void | rcRasterizeTriangles (rcContext *ctx, const float *verts, const int nv, const unsigned short *tris, const navAreaMask *areaMasks, const int nt, rcHeightfield &solid, const int flagMergeThr=1) |
| Rasterizes an indexed triangle mesh into the specified heightfield. More... | |
| void | rcRasterizeTriangles (rcContext *ctx, const float *verts, const navAreaMask *areaMasks, const int nt, rcHeightfield &solid, const int flagMergeThr=1) |
| Rasterizes triangles into the specified heightfield. More... | |
| void | rcFilterLowHangingWalkableObstacles (rcContext *ctx, const int walkableClimb, rcHeightfield &solid) |
Marks non-walkable spans as walkable if their maximum is within walkableClimp of a walkable neihbor. More... | |
| void | rcFilterLedgeSpans (rcContext *ctx, const int walkableHeight, const int walkableClimb, rcHeightfield &solid) |
| Marks spans that are ledges as not-walkable. More... | |
| void | rcFilterWalkableLowHeightSpans (rcContext *ctx, int walkableHeight, rcHeightfield &solid) |
| Marks walkable spans as not walkable if the clearence above the span is less than the specified height. More... | |
| int | rcGetHeightFieldSpanCount (rcContext *ctx, rcHeightfield &hf) |
| Returns the number of spans contained in the specified heightfield. More... | |