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

Constructs an object with all buffers allocated and ready to load with data. (See: Load(PolyMeshDetailData))

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 PolyMeshDetail Create(
	int maxVerts,
	int maxTris,
	int maxMeshes
)
Public Shared Function Create ( _
	maxVerts As Integer, _
	maxTris As Integer, _
	maxMeshes As Integer _
) As PolyMeshDetail
public:
static PolyMeshDetail^ Create(
	int maxVerts, 
	int maxTris, 
	int maxMeshes
)

Parameters

maxVerts
Int32
The maximum vertices the vertex buffer will hold. [Limit: >= 3]
maxTris
Int32
The maximum triangles the triangle buffer will hold. [Limit: > 0]
maxMeshes
Int32
The maximum sub-meshes the mesh buffer will hold. [Limit: > 0]

Return Value

The new detail mesh, or null on error.

See Also