[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: 0.4.0.0 (0.4.0.0)

Syntax

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

Return Value

The number of triangles removed.

Remarks

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