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

Creates a thread-safe, fully validated builder.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public static InputGeometryBuilder Create(
	TriangleMesh mesh,
	byte[] areas,
	float walkableSlope
)
Public Shared Function Create ( _
	mesh As TriangleMesh, _
	areas As Byte(), _
	walkableSlope As Single _
) As InputGeometryBuilder
public:
static InputGeometryBuilder^ Create(
	TriangleMesh^ mesh, 
	array<unsigned char>^ areas, 
	float walkableSlope
)

Parameters

mesh
TriangleMesh
The triangle mesh to use for the build.
areas
array<Byte>[]()[][]
The triangle areas. (Null permitted.)
walkableSlope
Single
The walkable slope. (See WalkableSlope)

Return Value

A thread-safe, fully validated builder. Or null on error.

Remarks

The input mesh and area parameters are fully validated.

Will return null if there are zero triangles.

All triangleswill default to MaxArea if the areas parameter is null.

If walkable slope if greather than zero then the builder will apply ClearUnwalkableTriangles(BuildContext, TriangleMesh, Single, array<Byte>[]()[][]) to the areas.

See Also