rcOffsetPoly

Helper function to offset voncex polygons for rcMarkConvexPolyArea.

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

int rcOffsetPoly
(
    const float * verts,
    const int nverts,
    const float offset,
    float * outVerts,
    const int maxOutVerts
)

Remarks

Helper function to offset voncex polygons for rcMarkConvexPolyArea.

Returns

Number of vertices in the offset polygon or 0 if too few vertices in `outVerts_.

Parameters

Parameter

Description

verts

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

nverts

The number of vertices in the polygon.

outVerts

The offset vertices (should hold up to 2 nverts) [Form: (x, y, z) return value]

maxOutVerts

The max number of vertices that can be stored to outVerts.

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