Navigation
API > API/Runtime > API/Runtime/Navmesh
Description
Rasterizes a triangle into the specified heightfield.
No spans will be added if the triangle does not overlap the heightfield grid.
| Name | rcRasterizeTriangle |
| Type | function |
| Header File | /Engine/Source/Runtime/Navmesh/Public/Recast/Recast.h |
| Include Path | #include "Recast/Recast.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/Recast/RecastRasterization.cpp |
void rcRasterizeTriangle
(
rcContext * ctx,
const rcReal * v0,
const rcReal * v1,
const rcReal * v2,
const unsigned char area,
rcHeightfield & solid,
const int flagMergeThr,
const int rasterizationFlags,
const int * rasterizationMasks
)
Parameters
| Name | Remarks |
|---|---|
| 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] |
| rtzFlags | Flags to change the rasterization behavior //UE |
| rtzMasks | Mask for the rasterization flags [Size: hf.w*hf.h] //UE |