rcBuildRegionsChunky

Builds region data for the heightfield using simple monotone partitioning.

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/RecastRegion.cpp

Syntax

bool rcBuildRegionsChunky
(
    rcContext * ctx,
    rcCompactHeightfield & chf,
    const int borderSize,
    const int minRegionArea,
    const int mergeRegionArea,
    const int chunkSize
)

Remarks

Builds region data for the heightfield using simple monotone partitioning.

Returns

True if the operation completed successfully.

Parameters

Parameter

Description

ctx

The build context to use during the operation.

chf

A populated compact heightfield.

borderSize

The size of the non-navigable border around the heightfield. [Limit: >=0] [Units: vx]

minRegionArea

The minimum number of cells allowed to form isolated island areas. [Limit: >=0] [Units: vx].

mergeRegionArea

Any regions with a span count smaller than this value will, if possible, be merged with larger regions. [Limit: >=0] [Units: vx]

chunkSize

Size of subregion [Units: vx]

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