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

Creates a connection set guarenteed to be thread-safe, immutable, and content valid.

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 ConnectionSet Create(
	Vector3[] verts,
	float[] radii,
	byte[] dirs,
	byte[] areas,
	ushort[] flags,
	uint[] userIds
)
Public Shared Function Create ( _
	verts As Vector3(), _
	radii As Single(), _
	dirs As Byte(), _
	areas As Byte(), _
	flags As UShort(), _
	userIds As UInteger() _
) As ConnectionSet
public:
static ConnectionSet^ Create(
	array<Vector3>^ verts, 
	array<float>^ radii, 
	array<unsigned char>^ dirs, 
	array<unsigned char>^ areas, 
	array<unsigned short>^ flags, 
	array<unsigned int>^ userIds
)

Parameters

verts
array<Vector3>[]()[][]
The connection vertices. [(start, end) * connCount]
radii
array<Single>[]()[][]
The connection radii. [Length: connCount]
dirs
array<Byte>[]()[][]
The connection direction flags. [Length: connCount]
areas
array<Byte>[]()[][]
The connection areas. [Length: connCount]
flags
array<UInt16>[]()[][]
The connection flags. [Length: connCount]
userIds
array<UInt32>[]()[][]
The connection user ids. [Length: connCount]

Return Value

A connection set, or null on failure.

Return Value

The connection set.

Remarks

This method performs a full validation of the structure and content of the connection data.

This method cannot be used to create an empty set. Attempting to do so will return null. Use CreateEmpty()()()() instead.

See Also