DrillBox: Set finger joint details as defaults

instead of hard coding them
This commit is contained in:
Florian Festi 2021-12-12 17:19:13 +01:00
parent 866714ef7e
commit 68e0bae6a9
1 changed files with 2 additions and 3 deletions

View File

@ -22,7 +22,8 @@ class DrillBox(Boxes):
def __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.argparser.add_argument(
"--holes",
@ -86,8 +87,6 @@ class DrillBox(Boxes):
y = sum(self.sy)
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(y, h, "FfeF", callback=[self.holesy], move="up")
self.rectangularWall(y, h, "FfeF", callback=[self.holesy])