From a6ca723759752e085831e7397a2f3c6315c518a9 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sat, 11 May 2019 17:18:10 +0200 Subject: [PATCH] Mirror holes on the other walls to have them match up. Otherwise boxes with non symetric top edges don't fit together. Fixes #141 --- boxes/generators/typetray.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boxes/generators/typetray.py b/boxes/generators/typetray.py index 212e014..36f254f 100644 --- a/boxes/generators/typetray.py +++ b/boxes/generators/typetray.py @@ -100,7 +100,7 @@ class TypeTray(_TopEdge): # outer walls self.rectangularWall(x, h, [b, "F", t1, "F"], callback=[self.xHoles, None, self.gripHole], move="up") - self.rectangularWall(x, h, [b, "F", t3, "F"], callback=[self.xHoles, ], move="up") + self.rectangularWall(x, h, [b, "F", t3, "F"], callback=[self.mirrorX(self.xHoles, x), ], move="up") # floor if b != "e": @@ -135,7 +135,7 @@ class TypeTray(_TopEdge): # outer walls self.rectangularWall(y, h, [b, "f", t2, "f"], callback=[self.yHoles, ], move="up") - self.rectangularWall(y, h, [b, "f", t4, "f"], callback=[self.yHoles, ], move="up") + self.rectangularWall(y, h, [b, "f", t4, "f"], callback=[self.mirrorX(self.yHoles, y), ], move="up") # inner walls for i in range(len(self.sx) - 1):