Module |
|
Header |
/Engine/Source/Runtime/Navmesh/Public/Recast/Recast.h |
Include |
#include "Recast/Recast.h" |
Source |
/Engine/Source/Runtime/Navmesh/Private/Recast/RecastMeshDetail.cpp |
bool rcBuildPolyMeshDetail
(
rcContext * ctx,
const rcPolyMesh & mesh,
const rcCompactHeightfield & chf,
const float sampleDist,
const float sampleMaxError,
rcPolyMeshDetail & dmesh
)
Builds a detail mesh from the provided polygon mesh.
See the rcConfig documentation for more information on the configuration parameters.
True if the operation completed successfully.
Parameter |
Description |
---|---|
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.) |