Skip to content

Commit

Permalink
Update pack.py
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-dvorak authored May 26, 2024
1 parent fe832a8 commit 5c30afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build123d/pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def grow_down(w, h):
return [(t[1], t[2]) for t in sorted(translations, key=lambda t: t[0])]


def pack(objects: Collection[Shape], padding: float, align_z: bool = True) -> Collection[Shape]:
def pack(objects: Collection[Shape], padding: float, align_z: bool = False) -> Collection[Shape]:
"""Pack objects in a squarish area in Plane.XY."""
bounding_boxes = {o: o.bounding_box().size + (padding, padding) for o in objects}
translations = _pack2d(
Expand Down

0 comments on commit 5c30afb

Please sign in to comment.