Struct KDTreeNode
Defined in File KDTree.hpp
Struct Documentation
-
struct KDTreeNode
A single node of a kd tree.
A node covers the contiguous block of count_ points that starts at index start_ of the tree’s point array. An interior node is split along dimension splitDim_ into children lchild_ and rchild_; a leaf has splitDim_ = -1 and both children equal to nullNode. Its bounding box is not stored here but in flat arrays owned by the tree (see KDTree::nodeLo() and nodeHi()), so that a node is a small fixed-size record with no allocations of its own; classes built on KDTree that keep further per-node data (e.g. KernelDensity’s weight sums) do likewise, in arrays indexed by node.