rcReplaceConvexPolyArea

Replaces an area id in spans with matching filter area within the specified convex polygon.

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

Syntax

void rcReplaceConvexPolyArea
(
    rcContext * ctx,
    const float * verts,
    const int nverts,
    const float hmin,
    const float hmax,
    unsigned char areaId,
    unsigned char filterAreaId,
    rcCompactHeightfield & chf
)

Remarks

Replaces an area id in spans with matching filter area within the specified convex polygon.

The value of spacial parameters are in world units.

The y-values of the polygon vertices are ignored. So the polygon is effectively projected onto the xz-plane at hmin_, then extruded to hmax_.

Parameters

Parameter

Description

ctx

The build context to use during the operation.

verts

The vertices of the polygon [Fomr: (x, y, z) * nverts]

nverts

The number of vertices in the polygon.

hmin

The height of the base of the polygon.

hmax

The height of the top of the polygon.

areaId

The area id to apply. [Limit: <= #RC_WALKABLE_AREA]

chf

A populated compact heightfield.

See Also

rcCompactHeightfield

rcMedianFilterWalkableArea

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