From 4a79c37e7101502caf64c40530d8ecbf680fc474 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Tue, 11 Dec 2018 19:33:52 +0100 Subject: [PATCH] CardBox: Add gripping ledge to the lid --- boxes/generators/cardbox.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/boxes/generators/cardbox.py b/boxes/generators/cardbox.py index 9f39ec8..d74a326 100644 --- a/boxes/generators/cardbox.py +++ b/boxes/generators/cardbox.py @@ -116,7 +116,7 @@ class CardBox(Boxes): self.ctx.save() # Lid - self.rectangularWall(x-t*.2, y+t, "eeee", move="right") + self.rectangularWall(x-t*.2, y, "Feee", move="right") # Bottom self.rectangularWall(x, y, "ffff", callback=[self.divider_bottom], move="right") @@ -136,7 +136,9 @@ class CardBox(Boxes): self.ctx.restore() self.rectangularWall(x, h, "EEEE", move="up only") - self.ctx.save() + + #lip of the lid + self.rectangularWall(x-t*.2, t, "fEeE", move="up") # Outer sides self.rectangularWall(h, y, "fFfF", move="right")