TypeTray: Make bottom_edge parametric
This does not affect the inside walls
This commit is contained in:
parent
46175dde11
commit
d360703cba
|
@ -24,7 +24,7 @@ class TypeTray(Boxes):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Boxes.__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.addSettingsArgs(edges.FingerJointSettings, surroundingspaces=0.5)
|
||||||
self.argparser.add_argument(
|
self.argparser.add_argument(
|
||||||
"--closedtop", action="store", type=boolarg, default=False,
|
"--closedtop", action="store", type=boolarg, default=False,
|
||||||
|
@ -92,11 +92,12 @@ class TypeTray(Boxes):
|
||||||
self.open()
|
self.open()
|
||||||
|
|
||||||
# outer walls
|
# outer walls
|
||||||
e1 = "Ffef"
|
b = self.bottom_edge
|
||||||
e2 = "FFeF"
|
e1 = b + "fef"
|
||||||
|
e2 = b + "FeF"
|
||||||
if self.closedtop:
|
if self.closedtop:
|
||||||
e1 = "FfFf"
|
e1 = b + "fFf"
|
||||||
e2 = "FFFF"
|
e2 = b + "FFF"
|
||||||
|
|
||||||
self.rectangularWall(x, h, e1, callback=[self.xHoles, None, self.gripHole], move="right")
|
self.rectangularWall(x, h, e1, callback=[self.xHoles, None, self.gripHole], move="right")
|
||||||
self.rectangularWall(y, h, e2, callback=[self.yHoles, ], move="up")
|
self.rectangularWall(y, h, e2, callback=[self.yHoles, ], move="up")
|
||||||
|
|
Loading…
Reference in New Issue