From 6cf7af75c6093aa0b762f8f0442fc48581ebed0b Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Wed, 23 Mar 2016 09:11:51 +0100 Subject: [PATCH] Fix bedbolts in box2 --- boxes/generators/box2.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/boxes/generators/box2.py b/boxes/generators/box2.py index 7ffe192..468ed20 100755 --- a/boxes/generators/box2.py +++ b/boxes/generators/box2.py @@ -15,6 +15,7 @@ # along with this program. If not, see . from boxes import * +from boxes.edges import Bolts import inspect class Box(Boxes): @@ -33,16 +34,16 @@ class Box(Boxes): t = self.thickness self.open(width=x+y+40, height=y+2*h+50) - d2 = [edges.Bolts(2)] - d3 = [edges.Bolts(3)] + d2 = Bolts(2) + d3 = Bolts(3) d2 = d3 = None self.moveTo(t, t) - self.rectangularWall(x, h, "hFeF", bedBolts=d2, move="right") - self.rectangularWall(y, h, "hfef", bedBolts=d3, move="up") - self.rectangularWall(y, h, "hfef", bedBolts=d3) - self.rectangularWall(x, h, "hFeF", bedBolts=d2, move="left up") + self.rectangularWall(x, h, "hFeF", bedBolts=[d2], move="right") + self.rectangularWall(y, h, "hfef", bedBolts=[d3], move="up") + self.rectangularWall(y, h, "hfef", bedBolts=[d3]) + self.rectangularWall(x, h, "hFeF", bedBolts=[d2], move="left up") self.rectangularWall(x, y, "ffff", bedBolts=[d2, d3, d2, d3])