Skip to content

Commit

Permalink
Limit lip for "ontop" lid to corners
Browse files Browse the repository at this point in the history
This avoids colliding with inner walls (if there are any).

Resolves: #681
  • Loading branch information
florianfesti committed Aug 2, 2024
1 parent c3d9393 commit 4d5f4bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions boxes/lids.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ def __call__(self, x: float, y: float, edge=None) -> bool:
self.rectangularWall(y2, self.height, b + "fFf",
ignore_widths=[1, 2, 5, 6], move="up")
if style == "ontop":
self.rectangularWall(y - self.play, height + 2*t, "eeee",
move="up")
self.rectangularWall(y - self.play, height + 2*t, "eeee",
move="up")
for _ in range(4):
self.polygonWall(
(2*t, (90, t), t+self.height, 90, 4*t, 90,
t+self.height, (90, t)), "e", move="up")
else:
return False

Expand Down

0 comments on commit 4d5f4bf

Please sign in to comment.