Node3Leaf

References
public class Node3Leaf
Represents a single element in a recursive Oc-tree Node structure.

Constructors

Node3Leaf

#
Blank constructor
public Node3Leaf()

Node3Leaf

#
Box constructor. Create an empty leaf with a specific box.
public Node3Leaf()

Node3Leaf

#
Copy constructor
public Node3Leaf(
Node3Leaf
other
Leaf to mimic
)

Fields

m_A

#
protected Node3Leaf m_A

m_B

#
protected Node3Leaf m_B

m_C

#
protected Node3Leaf m_C

m_D

#
protected Node3Leaf m_D

m_E

#
protected Node3Leaf m_E

m_F

#
protected Node3Leaf m_F

m_G

#
protected Node3Leaf m_G

m_H

#
protected Node3Leaf m_H

m_x0

#
protected double m_x0

m_x1

#
protected double m_x1

m_y0

#
protected double m_y0

m_y1

#
protected double m_y1

m_z0

#
protected double m_z0

m_z1

#
protected double m_z1

Properties

A

#
public Node3Leaf A { get; }

B

#
public Node3Leaf B { get; }

C

#
public Node3Leaf C { get; }

D

#
public Node3Leaf D { get; }

E

#
public Node3Leaf E { get; }

F

#
public Node3Leaf F { get; }

G

#
public Node3Leaf G { get; }

H

#
public Node3Leaf H { get; }

Nodes

#
Gets the indices of all nodes which are contained in this leaf.
public List<int> Nodes { get; }

SubLeafCount

#
public int SubLeafCount { get; }

x_max

#
Gets the right bounary of the Leaf space.
public double x_max { get; }

x_mid

#
Gets the vertical center axis of the Leaf space.
public double x_mid { get; }

x_min

#
Gets the left bounary of the Leaf space.
public double x_min { get; }

y_max

#
Gets the top bounary of the Leaf space.
public double y_max { get; }

y_mid

#
Gets the horizontal center axis of the Leaf space.
public double y_mid { get; }

y_min

#
Gets the bottom bounary of the Leaf space.
public double y_min { get; }

z_max

#
Gets the top boundary of the Leaf space.
public double z_max { get; }

z_mid

#
Gets the z center axis of the Leaf space.
public double z_mid { get; }

z_min

#
Gets the bottom boundary of the Leaf space.
public double z_min { get; }

Methods

Contains

#
public bool Contains()

MaximumDistance

#
public double MaximumDistance()

MaximumDistanceSquared

#
public double MaximumDistanceSquared()

MinimumDistance

#
public double MinimumDistance()

MinimumDistanceSquared

#
public double MinimumDistanceSquared()

PerformLeafAction

#
public void PerformLeafAction(
ILeafAction
func,
call_on_empty_leaves
)

PerformLeafAction

#
public void PerformLeafAction(
LeafAction
func,
call_on_empty_leaves
)

RemoveNode

#
Remove the node with the specified tag from this leaf or any subleafs. This method assumes that a node with a given tag occurs at most once within this subtree. Removing nodes will not close leafs, you need to call TrimExcess() in order to remove empty subleafs or empty nodelists.
public bool RemoveNode(
nodes,
Node data.
nodeTag
Tag of node.
)

RemoveNode

#
Remove the specified node from this leaf or any subleafs. This method assumes that any node occurs at most once within this subtree. Removing nodes will not close leafs, you need to call TrimExcess() in order to remove empty subleafs or empty nodelists.
public bool RemoveNode(
nodes,
Node data.
node
Node to remove.
)

SolveProximity

#
Recursive method that solves a proximity search.
public void SolveProximity(
nodes,
Node set to search
prox
Proximity object to search with
)

SubDivide

#
Builds a subtree from a Node list.
public void SubDivide(
nodes,
All the nodes that are supposed to be included in this tree.
index_subset,
A subset of nodes on which to perform the subdivision. Pass a null-pointer to use ALL nodes. If the list is not null, used indices will be extracted from the list, in order to reduce the number of pointless inclusion tests.
group_limit
The number of allowed Nodes per Leaf. If a Leaf contains more than N nodes, it will subdivide.
)

TrimExcess

#
Removes empty leaves, empty nodelists and nodelist capacity overflow from this leaf and all subleaves.
public void TrimExcess()