Navigation
API > API/Runtime > API/Runtime/Navmesh
Description
Builds a polygon mesh from the provided contours.
If the mesh data is to be used to construct a Detour navigation mesh, then the upper limit must be retricted to <= DT_VERTS_PER_POLYGON.
| Name | rcBuildPolyMesh |
| 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/RecastMesh.cpp |
bool rcBuildPolyMesh
(
rcContext * ctx,
rcContourSet & cset,
const int nvp,
rcPolyMesh & mesh
)
True if the operation completed successfully.
Parameters
| Name | Remarks |
|---|---|
| ctx | The build context to use during the operation. |
| cset | A fully built contour set. |
| nvp | The maximum number of vertices allowed for polygons generated during the contour to polygon conversion process. [Limit: >= 3] |
| mesh | The resulting polygon mesh. (Must be re-allocated.) |
See Also
-
rcAllocPolyMesh