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

Draw a triangle mesh, colored per triangle.

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,
	byte[] areas,
	int triCount,
	bool includeEdges,
	float surfaceAlpha
)
Public Shared Sub TriangleMesh ( _
	verts As Vector3(), _
	tris As Integer(), _
	areas As Byte(), _
	triCount As Integer, _
	includeEdges As Boolean, _
	surfaceAlpha As Single _
)
public:
static void TriangleMesh(
	array<Vector3>^ verts, 
	array<int>^ tris, 
	array<unsigned char>^ areas, 
	int triCount, 
	bool includeEdges, 
	float surfaceAlpha
)

Parameters

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

See Also