[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(
	TriangleMesh mesh,
	bool includeContent
)
Public Shared Function IsValid ( _
	mesh As TriangleMesh, _
	includeContent As Boolean _
) As Boolean
public:
static bool IsValid(
	TriangleMesh^ mesh, 
	bool includeContent
)

Parameters

mesh
TriangleMesh
The mesh to check.
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