Add finger joint settings again

Got removed accidentially in 8d754c
This commit is contained in:
Florian Festi 2017-02-09 00:02:41 +01:00
parent da6dcb4c68
commit 3e3ed3b0dd
7 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,7 @@ class AngledBox(Boxes):
def __init__(self): def __init__(self):
Boxes.__init__(self) Boxes.__init__(self)
self.addSettingsArgs(boxes.edges.FingerJointSettings)
self.buildArgParser("x", "y", "h", "outside") self.buildArgParser("x", "y", "h", "outside")
self.argparser.add_argument( self.argparser.add_argument(
"--n", action="store", type=int, default=5, "--n", action="store", type=int, default=5,

View File

@ -22,6 +22,7 @@ class Box(Boxes):
def __init__(self): def __init__(self):
Boxes.__init__(self) Boxes.__init__(self)
self.addSettingsArgs(boxes.edges.FingerJointSettings)
self.buildArgParser("x", "y", "h", "outside") self.buildArgParser("x", "y", "h", "outside")
def render(self): def render(self):

View File

@ -23,6 +23,7 @@ class Box2(Boxes):
def __init__(self): def __init__(self):
Boxes.__init__(self) Boxes.__init__(self)
self.addSettingsArgs(boxes.edges.FingerJointSettings)
self.addSettingsArgs(edges.StackableSettings) self.addSettingsArgs(edges.StackableSettings)
self.addSettingsArgs(edges.HingeSettings) self.addSettingsArgs(edges.HingeSettings)
self.addSettingsArgs(edges.LidSettings) self.addSettingsArgs(edges.LidSettings)

View File

@ -22,6 +22,7 @@ class Box3(Boxes):
def __init__(self): def __init__(self):
Boxes.__init__(self) Boxes.__init__(self)
self.buildArgParser("x", "y", "h", "outside") self.buildArgParser("x", "y", "h", "outside")
self.addSettingsArgs(boxes.edges.FingerJointSettings)
def render(self): def render(self):
x, y, h = self.x, self.y, self.h x, y, h = self.x, self.y, self.h

View File

@ -23,6 +23,7 @@ class MagazinFile(Boxes):
def __init__(self): def __init__(self):
Boxes.__init__(self) Boxes.__init__(self)
self.buildArgParser("x", "y", "h", "hi", "outside") self.buildArgParser("x", "y", "h", "hi", "outside")
self.addSettingsArgs(boxes.edges.FingerJointSettings)
def side(self, w, h, hi): def side(self, w, h, hi):
r = min(h - hi, w) / 2.0 r = min(h - hi, w) / 2.0

View File

@ -22,6 +22,7 @@ class RegularBox(Boxes):
def __init__(self): def __init__(self):
Boxes.__init__(self) Boxes.__init__(self)
self.addSettingsArgs(boxes.edges.FingerJointSettings)
self.buildArgParser("h", "outside") self.buildArgParser("h", "outside")
self.argparser.add_argument( self.argparser.add_argument(
"--radius", action="store", type=float, default=50.0, "--radius", action="store", type=float, default=50.0,

View File

@ -22,6 +22,7 @@ class RoundedBox(Boxes):
def __init__(self): def __init__(self):
Boxes.__init__(self) Boxes.__init__(self)
self.addSettingsArgs(boxes.edges.FingerJointSettings)
self.buildArgParser("x", "y", "h", "outside") self.buildArgParser("x", "y", "h", "outside")
self.argparser.add_argument( self.argparser.add_argument(
"--radius", action="store", type=float, default=15, "--radius", action="store", type=float, default=15,