Recast Navigation  1.0.35
RecastArea.cpp File Reference
#include <float.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "Recast.h"
#include "RecastAlloc.h"
#include "RecastAssert.h"

Macros

#define _USE_MATH_DEFINES
 

Functions

bool rcErodeWalkableArea (rcContext *ctx, int radius, rcCompactHeightfield &chf)
 Erodes the walkable area within the heightfield by the specified radius. More...
 
static void insertSort (navAreaMask *a, const int n)
 
bool rcMedianFilterWalkableArea (rcContext *ctx, rcCompactHeightfield &chf)
 Applies a median filter to walkable area types (based on area id), removing noise. More...
 
void rcMarkBoxArea (rcContext *ctx, const float *bmin, const float *bmax, navAreaMask areaId, rcCompactHeightfield &chf)
 Applies an area id to all spans within the specified bounding box. More...
 
int pointInPoly (int nvert, const float *verts, const float *p)
 
void rcMarkConvexPolyArea (rcContext *ctx, const float *verts, const int nverts, const float hmin, const float hmax, navAreaMask areaId, rcCompactHeightfield &chf)
 Applies the area id to the all spans within the specified convex polygon. More...
 
int rcOffsetPoly (const float *verts, const int nverts, const float offset, float *outVerts, const int maxOutVerts)
 Helper function to offset voncex polygons for rcMarkConvexPolyArea. More...
 
void rcMarkCylinderArea (rcContext *ctx, const float *pos, const float r, const float h, navAreaMask areaMask, rcCompactHeightfield &chf)
 Applies the area id to all spans within the specified cylinder. More...
 

Macro Definition Documentation

#define _USE_MATH_DEFINES

Function Documentation

static void insertSort ( navAreaMask *  a,
const int  n 
)
static
int pointInPoly ( int  nvert,
const float *  verts,
const float *  p 
)