Navigation
API > API/Runtime > API/Runtime/Navmesh
Description
Builds a detail mesh from the provided polygon mesh.
See the rcConfig documentation for more information on the configuration parameters.
| Name | rcBuildPolyMeshDetail |
| 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/RecastMeshDetail.cpp |
bool rcBuildPolyMeshDetail
(
rcContext * ctx,
const rcPolyMesh & mesh,
const rcCompactHeightfield & chf,
const rcReal sampleDist,
const rcReal sampleMaxError,
rcPolyMeshDetail & dmesh
)
True if the operation completed successfully.
Parameters
| Name | Remarks |
|---|---|
| ctx | The build context to use during the operation. |
| mesh | A fully built polygon mesh. |
| chf | The compact heightfield used to build the polygon mesh. |
| sampleDist | Sets the distance to use when samping the heightfield. [Limit: >=0] [Units: wu] |
| sampleMaxError | The maximum distance the detail mesh surface should deviate from heightfield data. [Limit: >=0] [Units: wu] |
| dmesh | The resulting detail mesh. (Must be pre-allocated.) |
See Also
-
rcAllocPolyMeshDetail