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
boundBoundingBoxThe bound.
lengthintThe length.
Properties
Count
public int Count { get; }
Property Value
this[int]
public StaticOctree<T>.Octant this[int index] { get; set; }
Parameters
indexint
Property Value
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
parentIndexintIndex of the parent.
childIndexintIndex of the child.
boundBoundingBoxThe bound.
newParentStaticOctree<T>.OctantThe parent out.
Returns
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
iint