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

Checks the size of the buffers to see if they are large enough to hold the specified data.

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 CanFit(
	int vertCount,
	int polyCount,
	int maxVertsPerPoly
)
Public Function CanFit ( _
	vertCount As Integer, _
	polyCount As Integer, _
	maxVertsPerPoly As Integer _
) As Boolean
public:
bool CanFit(
	int vertCount, 
	int polyCount, 
	int maxVertsPerPoly
)

Parameters

vertCount
Int32
The maximum vertices the vertex buffer needs to hold.
polyCount
Int32
The maximum polygons the polygon buffer needs to hold.
maxVertsPerPoly
Int32
The maximum allowed vertices for a polygon.

Return Value

True if all buffers are large enough to fit the data.

See Also