From 8f03030c533d5c62c1499838bcc5d22c031f1ae8 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sat, 8 Dec 2018 12:36:29 +0100 Subject: [PATCH] PaintStorage: Add carrying hole --- boxes/generators/paintbox.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/boxes/generators/paintbox.py b/boxes/generators/paintbox.py index 665cb6b..a6f5983 100644 --- a/boxes/generators/paintbox.py +++ b/boxes/generators/paintbox.py @@ -75,7 +75,9 @@ class PaintStorage(Boxes): h = self.canheight - stack.height - stack.holedistance + t # render your parts here - self.rectangularWall(h, x, "eseS", callback=[None, lambda: self.fingerHolesAt(0, self.canheight/3, x, 0)], + self.rectangularWall(h, x, "eseS", callback=[ + lambda: self.rectangularHole(h/3, x/2., h/4., 3./4.*x, r=2*t), + lambda: self.fingerHolesAt(0, self.canheight/3, x, 0)], move="right") self.rectangularWall(y, x, "efef", move="right") @@ -86,6 +88,8 @@ class PaintStorage(Boxes): move="") self.rectangularWall(y, x, "efef", callback=[self.paintholes], move="left") - self.rectangularWall(h, x, "eseS", callback=[None, lambda: self.fingerHolesAt(0, self.canheight/3, x, 0)], + self.rectangularWall(h, x, "eseS", callback=[ + lambda: self.rectangularHole(h/3, x/2., h/4., 3./4.*x, r=2*t), + lambda: self.fingerHolesAt(0, self.canheight/3, x, 0)], move="left") self.close()