Add finger joint settings again
Got removed accidentially in 8d754c
This commit is contained in:
parent
da6dcb4c68
commit
3e3ed3b0dd
|
@ -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,
|
||||||
|
|
|
@ -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):
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue