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

A basic indexed triangle 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 class TriangleMesh
Public Class TriangleMesh
public ref class TriangleMesh

Members

            
 All Members  Constructors   Fields   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
TriangleMesh()()()()
Default constuctor. (Un-initialized, not content.)
TriangleMesh(Int32, Int32)
Constructor.
TriangleMesh(array<Vector3>[]()[][], Int32, array<Int32>[]()[][], Int32)
Constructor.
GetBounds(Vector3%, Vector3%)
Gets the AABB bounds of the mesh.
IsBoundsValid(Vector3, Vector3)
True if the minimum bounds is less than the maximum bounds on all axes.
IsValid(TriangleMesh, Boolean)
Validates the structure and, optionally, the content of the mesh.
IsValid(array<Vector3>[]()[][], Int32, array<Int32>[]()[][], Int32, Boolean)
Validates the structure and, optionally, the content of the mesh.
triCount
The number of triangles.
tris
Triangles [(vertAIndex, vertBIndex, vertCIndex) * triCount] [Length: >= (triCount * 3)]
vertCount
The number of vertices.
verts
Vertices [Length: >= vertCount]

Remarks

The buffers may contain unused space.

Inheritance Hierarchy

System..::..Object
  org.critterai.geom..::..TriangleMesh

See Also