pyboxbuilder.compartments.element.elements_overlap¶
-
pyboxbuilder.compartments.element.elements_overlap(elements: Sequence[CompartmentElement], tolerance: float =
0.0) list[tuple[str, str]][source]¶ Return the pairs of elements whose bounding boxes intersect.
Bounding-box based, matching how the layout engine reasons about non-rectangular shapes (FR-004a). tolerance shrinks each box before the test, so silhouettes that only graze one another are not reported.