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

Draw a triangle mesh.

Namespace: org.critterai.u3d
Assembly: cai-util-u3d (in cai-util-u3d.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void TriangleMesh(
	Vector3[] verts,
	int[] tris,
	int triCount,
	bool includeEdges,
	Color color
)
Public Shared Sub TriangleMesh ( _
	verts As Vector3(), _
	tris As Integer(), _
	triCount As Integer, _
	includeEdges As Boolean, _
	color As Color _
)
public:
static void TriangleMesh(
	array<Vector3>^ verts, 
	array<int>^ tris, 
	int triCount, 
	bool includeEdges, 
	Color color
)

Parameters

verts
array<Vector3>[]()[][]
The vertices.
tris
array<Int32>[]()[][]
The triangle indices. [(vertAIndex, vertBIndex, vertCIndex) * triCount]
triCount
Int32
The number of triangles.
includeEdges
Boolean
True if the triangle edges should be drawn.
color
Color
The surface color.

See Also