DrillBox: Set finger joint details as defaults
instead of hard coding them
This commit is contained in:
parent
866714ef7e
commit
68e0bae6a9
|
@ -22,7 +22,8 @@ class DrillBox(Boxes):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Boxes.__init__(self)
|
Boxes.__init__(self)
|
||||||
self.addSettingsArgs(edges.FingerJointSettings)
|
self.addSettingsArgs(edges.FingerJointSettings,
|
||||||
|
space=3, finger=3, surroundingspaces=1)
|
||||||
self.buildArgParser(sx="25*3", sy="60*4", h=60)
|
self.buildArgParser(sx="25*3", sy="60*4", h=60)
|
||||||
self.argparser.add_argument(
|
self.argparser.add_argument(
|
||||||
"--holes",
|
"--holes",
|
||||||
|
@ -86,8 +87,6 @@ class DrillBox(Boxes):
|
||||||
y = sum(self.sy)
|
y = sum(self.sy)
|
||||||
h = self.h
|
h = self.h
|
||||||
|
|
||||||
self.edges["f"].settings.setValues(self.thickness, space=3, finger=3, surroundingspaces=1)
|
|
||||||
|
|
||||||
self.rectangularWall(x, h, "FfeF", callback=[self.holesx], move="right")
|
self.rectangularWall(x, h, "FfeF", callback=[self.holesx], move="right")
|
||||||
self.rectangularWall(y, h, "FfeF", callback=[self.holesy], move="up")
|
self.rectangularWall(y, h, "FfeF", callback=[self.holesy], move="up")
|
||||||
self.rectangularWall(y, h, "FfeF", callback=[self.holesy])
|
self.rectangularWall(y, h, "FfeF", callback=[self.holesy])
|
||||||
|
|
Loading…
Reference in New Issue