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

Voxelizes the provided triangles 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 AddTriangles(
	BuildContext context,
	Vector3[] verts,
	byte[] areas,
	int triCount,
	int flagMergeThreshold
)
Public Function AddTriangles ( _
	context As BuildContext, _
	verts As Vector3(), _
	areas As Byte(), _
	triCount As Integer, _
	flagMergeThreshold As Integer _
) As Boolean
public:
bool AddTriangles(
	BuildContext^ context, 
	array<Vector3>^ verts, 
	array<unsigned char>^ areas, 
	int triCount, 
	int flagMergeThreshold
)

Parameters

context
BuildContext
The context to use for the operation
verts
array<Vector3>[]()[][]
The triangles. [(vertA, vertB, vertC) * triCount]
areas
array<Byte>[]()[][]
The ids of the areas the triangles belong to. [Limit: <= MaxArea] [Size: >= triCount]
triCount
Int32
The number of triangles in the vertex array.
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