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

Builds polygon mesh from the provided contours.

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 PolyMesh Build(
	BuildContext context,
	ContourSet contours,
	int maxVertsPerPoly,
	int walkableHeight,
	int walkableRadius,
	int walkableStep
)
Public Shared Function Build ( _
	context As BuildContext, _
	contours As ContourSet, _
	maxVertsPerPoly As Integer, _
	walkableHeight As Integer, _
	walkableRadius As Integer, _
	walkableStep As Integer _
) As PolyMesh
public:
static PolyMesh^ Build(
	BuildContext^ context, 
	ContourSet^ contours, 
	int maxVertsPerPoly, 
	int walkableHeight, 
	int walkableRadius, 
	int walkableStep
)

Parameters

context
BuildContext
The context to use for the operation.
contours
ContourSet
The contours to use to build the mesh.
maxVertsPerPoly
Int32
The maximum allowed vertices for a polygon. [Limits: 3 <= value <= MaxAllowedVertsPerPoly]
walkableHeight
Int32
The walkable height used to build the contour data. [Limit: >= MinWalkableHeight] [Units: YCellSize]
walkableRadius
Int32
The radius used to erode the walkable area covered by the contours. [Limit: >= 0] [Units: XZCellSize]
walkableStep
Int32
The walkable step used to build the contour data. [Limit: >= 0] [Units: YCellSize]

Return Value

The generated polygon mesh, or null if there were errors.

Remarks

The values of the CellSize-based parameters will be converted to world units.

See Also