TypeTray: Make bottom_edge parametric

This does not affect the inside walls
This commit is contained in:
Florian Festi 2018-08-16 20:49:12 +02:00
parent 46175dde11
commit d360703cba
1 changed files with 6 additions and 5 deletions

View File

@ -24,7 +24,7 @@ class TypeTray(Boxes):
def __init__(self):
Boxes.__init__(self)
self.buildArgParser("sx", "sy", "h", "hi", "outside")
self.buildArgParser("sx", "sy", "h", "hi", "outside", "bottom_edge")
self.addSettingsArgs(edges.FingerJointSettings, surroundingspaces=0.5)
self.argparser.add_argument(
"--closedtop", action="store", type=boolarg, default=False,
@ -92,11 +92,12 @@ class TypeTray(Boxes):
self.open()
# outer walls
e1 = "Ffef"
e2 = "FFeF"
b = self.bottom_edge
e1 = b + "fef"
e2 = b + "FeF"
if self.closedtop:
e1 = "FfFf"
e2 = "FFFF"
e1 = b + "fFf"
e2 = b + "FFF"
self.rectangularWall(x, h, e1, callback=[self.xHoles, None, self.gripHole], move="right")
self.rectangularWall(y, h, e2, callback=[self.yHoles, ], move="up")