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

Checks for an removes invalid triangles.

Namespace: org.critterai.nmbuild
Assembly: cai-nmbuild (in cai-nmbuild.dll) Version: (


 C#  Visual Basic  Visual C++ 
public int CleanTriangles()
Public Function CleanTriangles As Integer
int CleanTriangles()

Return Value

The number of triangles removed.


A triangle is considered invalid in the following cases:

  • A vertex index is out of range.
  • The triangle contains duplicate vertices. (E.g. vertAIndex = vertBIndex)

See Also