pyboxbuilder.compartments.element.normalize_elements¶
-
pyboxbuilder.compartments.element.normalize_elements(elements: Sequence[CompartmentElement], margin: float =
0.0) tuple[CompartmentElement, ...][source]¶ Shift a pack so its bounding box starts at (margin, margin).
Keeps hand-written offsets readable — you can lay elements out in whatever coordinates suit the source drawing and let the pack normalise itself.