pyboxbuilder.compartments.layout.compute_min_box_size¶
-
pyboxbuilder.compartments.layout.compute_min_box_size(compartments: list[tuple[str, float, float, float]], wall_thickness: float =
2.0, floor_thickness: float =1.6, lid_thickness: float =2.0, max_w: float | None =None, max_l: float | None =None, *, no_rotate_labels: set[str] | None =None, outer_sizer: Callable[[float, float, float], tuple[float, float, float]] | None =None) tuple[float, float, float][source]¶ Return the smallest compact box that holds these compartments.
Includes layout gutters around compartments, respects
no_rotate_labels(preventing card compartments from being rotated during sizing), and delegates wall/sleeve/hinge/lid envelope offsets toouter_sizerwhen given.