|
static void | calculateDistanceField (rcCompactHeightfield &chf, unsigned short *src, unsigned short &maxDist) |
|
static unsigned short * | boxBlur (rcCompactHeightfield &chf, int thr, unsigned short *src, unsigned short *dst) |
|
static bool | floodRegion (int x, int y, int i, unsigned short level, unsigned short r, rcCompactHeightfield &chf, unsigned short *srcReg, unsigned short *srcDist, rcTempVector< LevelStackEntry > &stack) |
|
static void | expandRegions (int maxIter, unsigned short level, rcCompactHeightfield &chf, unsigned short *srcReg, unsigned short *srcDist, rcTempVector< LevelStackEntry > &stack, bool fillStack) |
|
static void | sortCellsByLevel (unsigned short startLevel, rcCompactHeightfield &chf, const unsigned short *srcReg, unsigned int nbStacks, rcTempVector< LevelStackEntry > *stacks, unsigned short loglevelsPerStack) |
|
static void | appendStacks (const rcTempVector< LevelStackEntry > &srcStack, rcTempVector< LevelStackEntry > &dstStack, const unsigned short *srcReg) |
|
static void | removeAdjacentNeighbours (rcRegion ®) |
|
static void | replaceNeighbour (rcRegion ®, unsigned short oldId, unsigned short newId) |
|
static bool | canMergeWithRegion (const rcRegion ®a, const rcRegion ®b) |
|
static void | addUniqueFloorRegion (rcRegion ®, int n) |
|
static bool | mergeRegions (rcRegion ®a, rcRegion ®b) |
|
static bool | isRegionConnectedToBorder (const rcRegion ®) |
|
static bool | isSolidEdge (rcCompactHeightfield &chf, const unsigned short *srcReg, int x, int y, int i, int dir) |
|
static void | walkContour (int x, int y, int i, int dir, rcCompactHeightfield &chf, const unsigned short *srcReg, rcIntArray &cont) |
|
static bool | mergeAndFilterRegions (rcContext *ctx, int minRegionArea, int mergeRegionSize, unsigned short &maxRegionId, rcCompactHeightfield &chf, unsigned short *srcReg, rcIntArray &overlaps) |
|
static void | addUniqueConnection (rcRegion ®, int n) |
|
static bool | mergeAndFilterLayerRegions (rcContext *ctx, int minRegionArea, unsigned short &maxRegionId, rcCompactHeightfield &chf, unsigned short *srcReg) |
|
bool | rcBuildDistanceField (rcContext *ctx, rcCompactHeightfield &chf) |
| Builds the distance field for the specified compact heightfield. More...
|
|
static void | paintRectRegion (int minx, int maxx, int miny, int maxy, unsigned short regId, rcCompactHeightfield &chf, unsigned short *srcReg) |
|
bool | rcBuildRegionsMonotone (rcContext *ctx, rcCompactHeightfield &chf, const int borderSize, const int minRegionArea, const int mergeRegionArea) |
| Builds region data for the heightfield using simple monotone partitioning. More...
|
|
bool | rcBuildRegions (rcContext *ctx, rcCompactHeightfield &chf, const int borderSize, const int minRegionArea, const int mergeRegionArea) |
| Builds region data for the heightfield using watershed partitioning. More...
|
|
bool | rcBuildLayerRegions (rcContext *ctx, rcCompactHeightfield &chf, const int borderSize, const int minRegionArea) |
| Builds region data for the heightfield by partitioning the heightfield in non-overlapping layers. More...
|
|