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

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

Parameters

context
BuildContext
The context to use for the operation
mesh
TriangleMesh
The triangle mesh.
areas
array<Byte>[]()[][]
The ids of the areas the triangles belong to. [Limit: <= MaxArea] [Size: >= mesh.triCount]
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