A k-d tree for efficiently finding intersections between shapes. More...
Public Types | |
using | boxes = std::vector< BBox< DIM > > |
Type alias for a vector of Bounding Boxes. | |
using | overlap = std::map< long, std::vector< long > > |
The leaves of another tree that intersect each leaf of a given tree. | |
Public Member Functions | |
overlap | intersect (const KDTree &) const |
Find intersections between this tree and another. | |
KDTree (const boxes &) | |
Construct the tree from leaf bounding boxes. | |
A k-d tree for efficiently finding intersections between shapes.
Type alias for a vector of Bounding Boxes.
The leaves of another tree that intersect each leaf of a given tree.
Construct the tree from leaf bounding boxes.
sboxp | vector of safety boxes |
Find intersections between this tree and another.
A possible use case is finding the overlap between multiple distributed meshes .