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

Validates the structure and content of the connection data.

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 bool IsValid(
	Vector3[] verts,
	float[] radii,
	byte[] dirs,
	byte[] areas,
	ushort[] flags,
	uint[] userIds
)
Public Shared Function IsValid ( _
	verts As Vector3(), _
	radii As Single(), _
	dirs As Byte(), _
	areas As Byte(), _
	flags As UShort(), _
	userIds As UInteger() _
) As Boolean
public:
static bool IsValid(
	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

True if the structure and content of the parameters is valid.

Remarks

This is the same validation performed by the safe creation method.

Structural checks include null array and length checks.

See Also