rcBuildPolyMesh

Builds a polygon mesh from the provided contours.

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

Syntax

bool rcBuildPolyMesh
(
    rcContext * ctx,
    rcContourSet & cset,
    const int nvp,
    rcPolyMesh & mesh
)

Remarks

Builds a polygon mesh from the provided contours.

If the mesh data is to be used to construct a Detour navigation mesh, then the upper limit must be retricted to <= #DT_VERTS_PER_POLYGON.

Returns

True if the operation completed successfully.

Parameters

Parameter

Description

ctx

The build context to use during the operation.

cset

A fully built contour set.

nvp

The maximum number of vertices allowed for polygons generated during the contour to polygon conversion process. [Limit: >= 3]

mesh

The resulting polygon mesh. (Must be re-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