From aa4c0fd1d4fe8508b92914f9b56c96b81cd8a208 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Wed, 23 Nov 2016 22:35:06 +0100 Subject: [PATCH] Add FingerJoints to the bottom of the front plates --- boxes/generators/bintray.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/boxes/generators/bintray.py b/boxes/generators/bintray.py index dace294..d8f38fe 100644 --- a/boxes/generators/bintray.py +++ b/boxes/generators/bintray.py @@ -110,8 +110,12 @@ class BinTray(Boxes): self.addPart(BinFrontEdge(self, self)) self.addPart(BinFrontSideEdge(self, self)) + edges.FingerJointSettings(self.thickness, True, angle=45).edgeObjects(self, chars="gGH") + # outer walls - self.rectangularWall(x, h, "Ffef", callback=[self.xHoles], move="right") + e = ["F", "f", edges.SlottedEdge(self, self.sx[::-1], "G"), "f"] + + self.rectangularWall(x, h, e, callback=[self.xHoles], move="right") self.rectangularWall(y, h, "FFbF", callback=[self.yHoles, ], move="up") self.rectangularWall(y, h, "FFbF", callback=[self.yHoles, ]) self.rectangularWall(x, h, "Ffef", callback=[self.xHoles, ], move="left") @@ -126,12 +130,13 @@ class BinTray(Boxes): for i in range(len(self.sy) - 1): e = [edges.SlottedEdge(self, self.sx, "f", slots=0.5 * hi), "f", - edges.SlottedEdge(self, self.sx[::-1], "e"), "f"] + edges.SlottedEdge(self, self.sx[::-1], "G"), "f"] self.rectangularWall(x, hi, e, move="up") # Front walls for i in range(len(self.sy)): - self.rectangularWall(x, self.sy[i]*self.front*2**0.5, "eFeF", callback=[self.frontHoles(i)], move="up") + e = [edges.SlottedEdge(self, self.sx, "g"), "F", "e", "F"] + self.rectangularWall(x, self.sy[i]*self.front*2**0.5, e, callback=[self.frontHoles(i)], move="up") self.close()