[This is preliminary documentation and is subject to change.]

Voxelizes a triangle into the heightfield.

Namespace: org.critterai.nmgen
Assembly: cai-nmgen (in cai-nmgen.dll) Version: 0.4.0.0 (0.4.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public bool AddTriangle(
	BuildContext context,
	Vector3[] verts,
	byte area,
	int flagMergeThreshold
)
Public Function AddTriangle ( _
	context As BuildContext, _
	verts As Vector3(), _
	area As Byte, _
	flagMergeThreshold As Integer _
) As Boolean
public:
bool AddTriangle(
	BuildContext^ context, 
	array<Vector3>^ verts, 
	unsigned char area, 
	int flagMergeThreshold
)

Parameters

context
BuildContext
The context to use for the operation
verts
array<Vector3>[]()[][]
The triangle vertices. [(vertA, vertB, vertC)]
area
Byte
The id of the area the triangle belongs to. [Limit: <= MaxArea]
flagMergeThreshold
Int32
The distance where the walkable flag is favored over the non-walkable flag. [Limit: >= 0] [Normal: 1]

Return Value

True if the operation was successful.

See Also