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

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

Parameters

mesh
TriangleMesh
The triangle mesh to use for the build.
areas
array<Byte>[]()[][]
The triangle areas. (Null not permitted.)
walkableSlope
Single
The walkable slope. (See WalkableSlope)
isThreadSafe
Boolean
True if the builder can run safely on its own thread.

Return Value

A builder, or null on error.

Remarks

No validation is performed and the builder will use the parameters directly during the build.

Builders created using this method are not guarenteed to produce a usable result.

It is the responsibility of the caller to ensure thread safely if isThreadSafe is set to true.

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

See Also