Table of Contents

Class StaticOctree<T>.OctantArray

Namespace
HelixToolkit.SharpDX.Utilities
Assembly
HelixToolkit.SharpDX.dll

Octant array, used to manage a internal octant array, which is the storage for the entire octree

protected sealed class StaticOctree<T>.OctantArray
Inheritance
StaticOctree<T>.OctantArray
Inherited Members

Constructors

OctantArray(BoundingBox, int)

Initializes a new instance of the StaticOctree<T>.OctantArray class.

public OctantArray(BoundingBox bound, int length)

Parameters

bound BoundingBox

The bound.

length int

The length.

Properties

Count

public int Count { get; }

Property Value

int

this[int]

public StaticOctree<T>.Octant this[int index] { get; set; }

Parameters

index int

Property Value

StaticOctree<T>.Octant

Methods

Add(int, int, BoundingBox, ref Octant)

Adds the specified parent index.

public bool Add(int parentIndex, int childIndex, BoundingBox bound, ref StaticOctree<T>.Octant newParent)

Parameters

parentIndex int

Index of the parent.

childIndex int

Index of the child.

bound BoundingBox

The bound.

newParent StaticOctree<T>.Octant

The parent out.

Returns

bool

Compact()

Compacts the octree array, remove all unused storage space at the end of the array.

public void Compact()

Get(int)

public ref StaticOctree<T>.Octant Get(int i)

Parameters

i int

Returns

StaticOctree<T>.Octant