rcBuildPolyMeshDetail

Builds a detail mesh from the provided polygon mesh.

Windows
MacOS
Linux

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/Recast/Recast.h

Include

#include "Recast/Recast.h"

Source

/Engine/Source/Runtime/Navmesh/Private/Recast/RecastMeshDetail.cpp

Syntax

bool rcBuildPolyMeshDetail
(
    rcContext * ctx,
    const rcPolyMesh & mesh,
    const rcCompactHeightfield & chf,
    const float sampleDist,
    const float sampleMaxError,
    rcPolyMeshDetail & dmesh
)

Remarks

Builds a detail mesh from the provided polygon mesh.

See the rcConfig documentation for more information on the configuration parameters.

Returns

True if the operation completed successfully.

Parameters

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.)

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss