Module |
|
Header |
/Engine/Source/Runtime/Navmesh/Public/Recast/Recast.h |
Include |
#include "Recast/Recast.h" |
Source |
/Engine/Source/Runtime/Navmesh/Private/Recast/RecastArea.cpp |
void rcReplaceConvexPolyArea
(
rcContext * ctx,
const float * verts,
const int nverts,
const float hmin,
const float hmax,
unsigned char areaId,
unsigned char filterAreaId,
rcCompactHeightfield & chf
)
Replaces an area id in spans with matching filter area within the specified convex polygon.
The value of spacial parameters are in world units.
The y-values of the polygon vertices are ignored. So the polygon is effectively projected onto the xz-plane at hmin_, then extruded to
hmax_.
Parameter |
Description |
---|---|
ctx |
The build context to use during the operation. |
verts |
The vertices of the polygon [Fomr: (x, y, z) * nverts] |
nverts |
The number of vertices in the polygon. |
hmin |
The height of the base of the polygon. |
hmax |
The height of the top of the polygon. |
areaId |
The area id to apply. [Limit: <= #RC_WALKABLE_AREA] |
chf |
A populated compact heightfield. |
rcMedianFilterWalkableArea