UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RecastContour.cpp File Reference

Macros

#define _USE_MATH_DEFINES
 

Functions

bool ileft (const int *a, const int *b, const int *c)
 
bool rcBuildContours (rcContext *ctx, rcCompactHeightfield &chf, const rcReal maxError, const int maxEdgeLen, rcContourSet &cset, const int buildFlags)
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Function Documentation

◆ ileft()

bool ileft ( const int *  a,
const int *  b,
const int *  c 
)
inline

◆ rcBuildContours()

bool rcBuildContours ( rcContext ctx,
rcCompactHeightfield chf,
const rcReal  maxError,
const int  maxEdgeLen,
rcContourSet cset,
const int  buildFlags 
)

The raw contours will match the region outlines exactly. The maxError and maxEdgeLen parameters control how closely the simplified contours will match the raw contours.

Simplified contours are generated such that the vertices for portals between areas match up. (They are considered mandatory vertices.)

Setting maxEdgeLength to zero will disable the edge length feature.

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

See also
rcAllocContourSet, rcCompactHeightfield, rcContourSet, rcConfig