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

Adds an arbitrary group of triangles.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public bool AddTriangles(
	Vector3[] verts,
	int vertCount,
	int[] tris,
	byte[] areas,
	int triCount
)
Public Function AddTriangles ( _
	verts As Vector3(), _
	vertCount As Integer, _
	tris As Integer(), _
	areas As Byte(), _
	triCount As Integer _
) As Boolean
public:
bool AddTriangles(
	array<Vector3>^ verts, 
	int vertCount, 
	array<int>^ tris, 
	array<unsigned char>^ areas, 
	int triCount
)

Parameters

verts
array<Vector3>[]()[][]
The triangle vertices. [Length: >= vertCount]
vertCount
Int32
The number of vertices. [Length: >= 3]
tris
array<Int32>[]()[][]
The triangles. [(vertAIndex, vertBIndex, vertCIndex) * triCount] [Length: >= 3 * triCount]
areas
array<Byte>[]()[][]
The triangle areas. (Optional) [Length: >= triCount]
triCount
Int32
The number of triangles. [Limit: > 0]

Return Value

True if the triangles were successfully added.

Remarks

All triangles will default to MaxArea if the areas parameter is null.

See Also