BoundingVolumeHierarchy

Median-split AABB tree, reusable for mesh primitives or particle boxes.

query_pairs returns unique original-index pairs whose boxes are within cutoff of one another. This is an exact box query, and only a broad phase for extended objects. For point boxes it is an exact radius search. Refit preserves the topology; rebuild by constructing a new tree when large deformations make the original split inefficient.

 

__init__(self, lower, upper=None, *, leaf_size=8): 

 

refit(self, lower, upper=None): 

 

query_pairs(self, cutoff=0.0, *, box=None): 

Feedback

Examples

Templates

Documentation