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

Gets the connections whose start vertex is within the specified bounds.

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 int GetConnections(
	float xmin,
	float zmin,
	float xmax,
	float zmax,
	out Vector3[] rverts,
	out float[] rradii,
	out byte[] rdirs,
	out byte[] rareas,
	out ushort[] rflags,
	out uint[] ruserIds
)
Public Function GetConnections ( _
	xmin As Single, _
	zmin As Single, _
	xmax As Single, _
	zmax As Single, _
	<OutAttribute> ByRef rverts As Vector3(), _
	<OutAttribute> ByRef rradii As Single(), _
	<OutAttribute> ByRef rdirs As Byte(), _
	<OutAttribute> ByRef rareas As Byte(), _
	<OutAttribute> ByRef rflags As UShort(), _
	<OutAttribute> ByRef ruserIds As UInteger() _
) As Integer
public:
int GetConnections(
	float xmin, 
	float zmin, 
	float xmax, 
	float zmax, 
	[OutAttribute] array<Vector3>^% rverts, 
	[OutAttribute] array<float>^% rradii, 
	[OutAttribute] array<unsigned char>^% rdirs, 
	[OutAttribute] array<unsigned char>^% rareas, 
	[OutAttribute] array<unsigned short>^% rflags, 
	[OutAttribute] array<unsigned int>^% ruserIds
)

Parameters

xmin
Single
The minimum x-axis bounds.
zmin
Single
The minimum z-axis bounds.
xmax
Single
The maximum x-axis bounds.
zmax
Single
The maximum z-axis bounds.
rverts
array<Vector3>[]()[][]%
The connection vertices. [(start, end) * connCount]
rradii
array<Single>[]()[][]%
The connection radii. [Length: connCount]
rdirs
array<Byte>[]()[][]%
The connection direction flags. [Length: connCount]
rareas
array<Byte>[]()[][]%
The connection areas. [Length: connCount]
rflags
array<UInt16>[]()[][]%
The connection flags. [Length: connCount]
ruserIds
array<UInt32>[]()[][]%
The connection user ids. [Length: connCount]

Return Value

The number of connection returned.

Remarks

The out parameters will be null if the return result is zero.

See Also