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

Gets the spans within the specified column.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public int GetSpans(
	int widthIndex,
	int depthIndex,
	HeightfieldSpan[] buffer
)
Public Function GetSpans ( _
	widthIndex As Integer, _
	depthIndex As Integer, _
	buffer As HeightfieldSpan() _
) As Integer
public:
int GetSpans(
	int widthIndex, 
	int depthIndex, 
	array<HeightfieldSpan>^ buffer
)

Parameters

widthIndex
Int32
The width index. [Limits: 0 <= value < Width]
depthIndex
Int32
The depth index. [Limits: 0 <= value < Depth]
buffer
array<HeightfieldSpan>[]()[][]
The buffer to load the result into. [Size: Maximum spans in a column]

Return Value

The number of spans returned.

Remarks

The spans will be ordered from lowest height to highest.

The GetSpanBuffer()()()() method can be used to get a properly sized buffer.

See Also