pyboxbuilder.compartments.sizing.rows_from_placements¶
-
pyboxbuilder.compartments.sizing.rows_from_placements(placements: collections.abc.Sequence[CompartmentPlacement], gap: float =
2.0) list[list[str]][source]¶ Group
CompartmentPlacementinstances into rows by their y coordinate.Two placements share a row when their y origins are within gap of each other, which is how the shelf packer builds them.