rcRasterizeTriangles

Rasterizes an indexed triangle mesh into the specified heightfield.

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

Syntax

void rcRasterizeTriangles
(
    rcContext * ctx,
    const float * verts,
    const int nv,
    const unsigned short * tris,
    const unsigned char * areas,
    const int nt,
    rcHeightfield & solid,
    const int flagMergeThr,
    const int rasterizationFlags
)

Remarks

Rasterizes an indexed triangle mesh into the specified heightfield.

Spans will only be added for triangles that overlap the heightfield grid.

Parameters

Parameter

Description

ctx

The build context to use during the operation.

verts

The vertices. [(x, y, z) * nv]

nv

The number of vertices.

tris

The triangle indices. [(vertA, vertB, vertC) * nt]

areas

The area id's of the triangles. [Limit: <= #RC_WALKABLE_AREA] [Size: nt]

nt

The number of triangles.

solid

An initialized heightfield.

flagMergeThr

The distance where the walkable flag is favored over the non-walkable flag. [Limit: >= 0] [Units: vx]

int

Flags to change the rasterization behavior //UE4

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