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

Voxelizes the triangles from the provided ChunkyTriMesh into the heightfield.

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 bool AddTriangles(
	BuildContext context,
	ChunkyTriMesh mesh,
	Vector3 boundsMin,
	Vector3 boundsMax,
	int flagMergeThreshold
)
Public Function AddTriangles ( _
	context As BuildContext, _
	mesh As ChunkyTriMesh, _
	boundsMin As Vector3, _
	boundsMax As Vector3, _
	flagMergeThreshold As Integer _
) As Boolean
public:
bool AddTriangles(
	BuildContext^ context, 
	ChunkyTriMesh^ mesh, 
	Vector3 boundsMin, 
	Vector3 boundsMax, 
	int flagMergeThreshold
)

Parameters

context
BuildContext
The build context.
mesh
ChunkyTriMesh
The mesh.
boundsMin
Vector3
The minimum bounds for the mesh query.
boundsMax
Vector3
The maximum bounds for the mesh query.
flagMergeThreshold
Int32
The distance where the walkable flag is favored over the non-walkable flag. [Limit: >= 0] [Normal: 1]

Return Value

True if the operation was successful.

Remarks

The chunks that are voxelized is controled by the bounds parameters.

See Also