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

Builds an aggregate triangle mesh from a detail mesh.

Namespace: org.critterai.nmgen
Assembly: cai-nmgen (in cai-nmgen.dll) Version: 0.4.0.0 (0.4.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static bool ExtractTriMesh(
	PolyMeshDetail source,
	out Vector3[] verts,
	out int[] tris
)
Public Shared Function ExtractTriMesh ( _
	source As PolyMeshDetail, _
	<OutAttribute> ByRef verts As Vector3(), _
	<OutAttribute> ByRef tris As Integer() _
) As Boolean
public:
static bool ExtractTriMesh(
	PolyMeshDetail^ source, 
	[OutAttribute] array<Vector3>^% verts, 
	[OutAttribute] array<int>^% tris
)

Parameters

source
PolyMeshDetail
The detail mesh to extract the triangle mesh from.
verts
array<Vector3>[]()[][]%
The result vertices.
tris
array<Int32>[]()[][]%
The result triangles. [(vertAIndex, vertBIndex, vertCIndex) * triCount]

Return Value

True if the operation completed successfully.

Remarks

All duplicate vertices are merged.

See Also