Navigation
API > API/Runtime > API/Runtime/Navmesh > API/Runtime/Navmesh/Recast
References
| Module | Navmesh |
| Header | /Engine/Source/Runtime/Navmesh/Public/Recast/Recast.h |
| Include | #include "Recast/Recast.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/Recast/RecastArea.cpp |
void rcMarkConvexPolyArea
(
rcContext * ctx,
const rcReal * verts,
const int nverts,
const rcReal hmin,
const rcReal hmax,
unsigned char areaId,
rcCompactHeightfield & chf
)
Remarks
Applies the area id to the all spans 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_.
Parameters
| Name | 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. |
See Also
rcMedianFilterWalkableArea