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

Creates a single use builder.

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 static ChunkyTriMeshBuilder Create(
	TriangleMesh mesh,
	byte[] areas,
	int trisPerChunk
)
Public Shared Function Create ( _
	mesh As TriangleMesh, _
	areas As Byte(), _
	trisPerChunk As Integer _
) As ChunkyTriMeshBuilder
public:
static ChunkyTriMeshBuilder^ Create(
	TriangleMesh^ mesh, 
	array<unsigned char>^ areas, 
	int trisPerChunk
)

Parameters

mesh
TriangleMesh
The triangle mesh to chunk.
areas
array<Byte>[]()[][]
The areas for each triangle in the mesh. (Null not allowed.)
trisPerChunk
Int32
The maximum number of triangles per chunk. [Limit: >= MinAllowedTrisPerChunk]

Return Value

A builder, or null on error.

Remarks

Will return null on parameter errors, an input mesh with zero triangles, and structural issues in the mesh object or area array. Does not perform a validation of the mesh or area content. (E.g. Does not check for invalid mesh indices.)

See Also