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

Constructor.

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 TriangleMesh(
	Vector3[] verts,
	int vertCount,
	int[] tris,
	int triCount
)
Public Sub New ( _
	verts As Vector3(), _
	vertCount As Integer, _
	tris As Integer(), _
	triCount As Integer _
)
public:
TriangleMesh(
	array<Vector3>^ verts, 
	int vertCount, 
	array<int>^ tris, 
	int triCount
)

Parameters

verts
array<Vector3>[]()[][]
The vertices. [Length: >= vertCount]
vertCount
Int32
The number of vertices.
tris
array<Int32>[]()[][]
The triangles. [(vertAIndex, vertBIndex, vertCIndex) * triCount] [Length: >= (triCount) * 3]
triCount
Int32
The number of triangles.

Remarks

This constructor assigns the provided arrays to the object. (No copying.)

See Also