Skip to main content

Module region_tree

Module region_tree 

Source
Expand description

A point region tree: the shared engine behind quad trees (D = 2) and oct trees (D = 3).

See the book entry Spatial trees.

Structsยง

RegionTree
A point tree over an axis-aligned region of D-space. Each leaf holds up to capacity points before splitting into 2^D equal sub-boxes (down to max_depth levels, so coincident points cannot cause unbounded splitting). Entries are (id, point) pairs; ids are chosen by the caller.