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

Adds a triangle mesh.

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(
	TriangleMesh mesh,
	byte[] areas
)
Public Function AddTriangles ( _
	mesh As TriangleMesh, _
	areas As Byte() _
) As Boolean
public:
bool AddTriangles(
	TriangleMesh^ mesh, 
	array<unsigned char>^ areas
)

Parameters

mesh
TriangleMesh
The triangle mesh.
areas
array<Byte>[]()[][]
The triangle areas. (Optional)[Length: >= mesh.triCount]

Return Value

True if the triangles were successfully added.

Remarks

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

Will return false if the mesh triangle count is zero.

See Also