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

Validates the structure and, optionally, the content of the mesh.

Namespace: org.critterai.geom
Assembly: cai-util (in cai-util.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static bool IsValid(
	Vector3[] verts,
	int vertCount,
	int[] tris,
	int triCount,
	bool includeContent
)
Public Shared Function IsValid ( _
	verts As Vector3(), _
	vertCount As Integer, _
	tris As Integer(), _
	triCount As Integer, _
	includeContent As Boolean _
) As Boolean
public:
static bool IsValid(
	array<Vector3>^ verts, 
	int vertCount, 
	array<int>^ tris, 
	int triCount, 
	bool includeContent
)

Parameters

verts
array<Vector3>[]()[][]
The mesh vertices.
vertCount
Int32
The vertex count.
tris
array<Int32>[]()[][]
The triangle indices.
triCount
Int32
The triangle count.
includeContent
Boolean
If true, the content will be checked. Otherwise only the structure will be checked.

Return Value

True if the validation tests pass.

Remarks

The basic structural validation includes null checks, array size checks, etc.

The optional content validation checks that the indices refer to valid vertices and that triangles do not contain duplicate vertices.

See Also