Table of Contents

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

TT

The 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

root OctTree<TT>
center GeoPoint
size double

Node(OctTree<TT>, Node<TT>, GeoPoint, double)

public Node(OctTree<TT> root, OctTree<T>.Node<TT> parent, GeoPoint center, double halfSize)

Parameters

root OctTree<TT>
parent OctTree<T>.Node<TT>
center GeoPoint
halfSize double

Fields

center

Center of the cube definig this node.

public GeoPoint center

Field Value

GeoPoint

cube

Cube defining this node

public BoundingCube cube

Field Value

BoundingCube

deepth

Depth of this node in the tree

public int deepth

Field Value

int

extension

Derived OctTrees may use this for whatever they need it

public object extension

Field Value

object

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

OctTree<T>.Node<TT>

mmp

the subtrees, may be null

public OctTree<T>.Node<TT> mmp

Field Value

OctTree<T>.Node<TT>

mpm

the subtrees, may be null

public OctTree<T>.Node<TT> mpm

Field Value

OctTree<T>.Node<TT>

mpp

the subtrees, may be null

public OctTree<T>.Node<TT> mpp

Field Value

OctTree<T>.Node<TT>

parent

Back reference to the parent node.

public OctTree<T>.Node<TT> parent

Field Value

OctTree<T>.Node<TT>

pmm

the subtrees, may be null

public OctTree<T>.Node<TT> pmm

Field Value

OctTree<T>.Node<TT>

pmp

the subtrees, may be null

public OctTree<T>.Node<TT> pmp

Field Value

OctTree<T>.Node<TT>

ppm

the subtrees, may be null

public OctTree<T>.Node<TT> ppm

Field Value

OctTree<T>.Node<TT>

ppp

the subtrees, may be null

public OctTree<T>.Node<TT> ppp

Field Value

OctTree<T>.Node<TT>

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

double

Methods

Compare(Node<TT>, Node<TT>)

public int Compare(OctTree<T>.Node<TT> x, OctTree<T>.Node<TT> y)

Parameters

x OctTree<T>.Node<TT>
y OctTree<T>.Node<TT>

Returns

int