Navigation
API > API/Runtime > API/Runtime/Navmesh
Description
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_.
| Name | rcReplaceConvexPolyArea |
| Type | function |
| Header File | /Engine/Source/Runtime/Navmesh/Public/Recast/Recast.h |
| Include Path | #include "Recast/Recast.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/Recast/RecastArea.cpp |
void rcReplaceConvexPolyArea
(
rcContext * ctx,
const rcReal * verts,
const int nverts,
const rcReal hmin,
const rcReal hmax,
unsigned char areaId,
unsigned char filterAreaId,
rcCompactHeightfield & chf
)
Parameters
| Name | Remarks |
|---|---|
| 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. |
See Also
-
rcMedianFilterWalkableArea