rcRasterizeTriangle

Rasterizes a triangle into the specified heightfield.

Windows
MacOS
Linux

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/Recast/Recast.h

Include

#include "Recast/Recast.h"

Syntax

void rcRasterizeTriangle
(
    rcContext * ctx,
    const float * v0,
    const float * v1,
    const float * v2,
    const unsigned char area,
    rcHeightfield & solid,
    const int flagMergeThr
)

Remarks

Rasterizes a triangle into the specified heightfield.

Parameters

Parameter

Description

ctx

The build context to use during the operation.

v0

Triangle vertex 0 [(x, y, z)]

v1

Triangle vertex 1 [(x, y, z)]

v2

Triangle vertex 2 [(x, y, z)]

area

The area id of the triangle. [Limit: <= #RC_WALKABLE_AREA]

solid

An initialized heightfield.

flagMergeThr

The distance where the walkable flag is favored over the non-walkable flag. [Limit: >= 0] [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