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

Set the area of all triangles with a slope above the specified value to NullArea.

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 ClearUnwalkableTriangles(
	BuildContext context,
	TriangleMesh mesh,
	float walkableSlope,
	byte[] areas
)
Public Shared Function ClearUnwalkableTriangles ( _
	context As BuildContext, _
	mesh As TriangleMesh, _
	walkableSlope As Single, _
	areas As Byte() _
) As Boolean
public:
static bool ClearUnwalkableTriangles(
	BuildContext^ context, 
	TriangleMesh^ mesh, 
	float walkableSlope, 
	array<unsigned char>^ areas
)

Parameters

context
BuildContext
The context to use duing the operation.
mesh
TriangleMesh
The source mesh.
walkableSlope
Single
The maximum walkable slope.
areas
array<Byte>[]()[][]
The areas associated with each triangle. [Length: >= mesh.triCount] (In/Out)

Return Value

True if the operation was successful.

See Also