Class OctTree<T>.Node<TT>
- Namespace
- CADability
- Assembly
- CADability.dll
Definition of a node of this octtree.
public class OctTree<T>.Node<TT> : IComparable<OctTree<T>.Node<TT>> where TT : T
Type Parameters
TTThe generic type, is the same type as the enclosing OctTree type
- Inheritance
-
OctTree<T>.Node<TT>
- Implements
- Inherited Members
Constructors
Node(OctTree<TT>, GeoPoint, double)
public Node(OctTree<TT> root, GeoPoint center, double size)
Parameters
Node(OctTree<TT>, Node<TT>, GeoPoint, double)
public Node(OctTree<TT> root, OctTree<T>.Node<TT> parent, GeoPoint center, double halfSize)
Parameters
Fields
center
Center of the cube definig this node.
public GeoPoint center
Field Value
cube
Cube defining this node
public BoundingCube cube
Field Value
deepth
Depth of this node in the tree
public int deepth
Field Value
extension
Derived OctTrees may use this for whatever they need it
public object extension
Field Value
list
List of IOctTreeInsertable objects in this octTree
public HashSet<TT> list
Field Value
- HashSet<TT>
mmm
the subtrees, may be null
public OctTree<T>.Node<TT> mmm
Field Value
mmp
the subtrees, may be null
public OctTree<T>.Node<TT> mmp
Field Value
mpm
the subtrees, may be null
public OctTree<T>.Node<TT> mpm
Field Value
mpp
the subtrees, may be null
public OctTree<T>.Node<TT> mpp
Field Value
parent
Back reference to the parent node.
public OctTree<T>.Node<TT> parent
Field Value
pmm
the subtrees, may be null
public OctTree<T>.Node<TT> pmm
Field Value
pmp
the subtrees, may be null
public OctTree<T>.Node<TT> pmp
Field Value
ppm
the subtrees, may be null
public OctTree<T>.Node<TT> ppm
Field Value
ppp
the subtrees, may be null
public OctTree<T>.Node<TT> ppp
Field Value
root
Back reference to the root.
public OctTree<TT> root
Field Value
- OctTree<TT>
size
"Radius" (half width) of the cube defining this node
public double size
Field Value
Methods
Compare(Node<TT>, Node<TT>)
public int Compare(OctTree<T>.Node<TT> x, OctTree<T>.Node<TT> y)