Name generator classes properly
This commit is contained in:
parent
f8b4ef2162
commit
77ba187c70
|
@ -18,7 +18,7 @@ from boxes import *
|
||||||
from boxes.edges import Bolts
|
from boxes.edges import Bolts
|
||||||
import inspect
|
import inspect
|
||||||
|
|
||||||
class Box(Boxes):
|
class Box2(Boxes):
|
||||||
"""Box various options for different stypes and lids"""
|
"""Box various options for different stypes and lids"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -140,7 +140,7 @@ class Box(Boxes):
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
b = Box()
|
b = Box2()
|
||||||
b.parseArgs()
|
b.parseArgs()
|
||||||
b.render()
|
b.render()
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
from boxes import *
|
from boxes import *
|
||||||
|
|
||||||
class Box(Boxes):
|
class Box3(Boxes):
|
||||||
"""Box with just 3 walls"""
|
"""Box with just 3 walls"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Boxes.__init__(self)
|
Boxes.__init__(self)
|
||||||
|
@ -53,7 +53,7 @@ class Box(Boxes):
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
b = Box()
|
b = Box3()
|
||||||
b.parseArgs()
|
b.parseArgs()
|
||||||
b.render()
|
b.render()
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
from boxes import *
|
from boxes import *
|
||||||
|
|
||||||
class Box(Boxes):
|
class DrillBox(Boxes):
|
||||||
"""Not yet parametrized box for drills from 1 to 12.5mm
|
"""Not yet parametrized box for drills from 1 to 12.5mm
|
||||||
in 0.5mm steps, 3 holes each size"""
|
in 0.5mm steps, 3 holes each size"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -74,7 +74,7 @@ in 0.5mm steps, 3 holes each size"""
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
b = Box()
|
b = DrillBox()
|
||||||
b.parseArgs()
|
b.parseArgs()
|
||||||
b.render()
|
b.render()
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
from boxes import *
|
from boxes import *
|
||||||
import math
|
import math
|
||||||
|
|
||||||
class FlexBox(Boxes):
|
class FlexBox2(Boxes):
|
||||||
"""Box with living hinge and top corners rounded"""
|
"""Box with living hinge and top corners rounded"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Boxes.__init__(self)
|
Boxes.__init__(self)
|
||||||
|
@ -99,7 +99,7 @@ class FlexBox(Boxes):
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
b = FlexBox()
|
b = FlexBox2()
|
||||||
b.parseArgs()
|
b.parseArgs()
|
||||||
b.render()
|
b.render()
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
from boxes import *
|
from boxes import *
|
||||||
import math
|
import math
|
||||||
|
|
||||||
class FlexBox(Boxes):
|
class FlexBox3(Boxes):
|
||||||
"""Box with living hinge"""
|
"""Box with living hinge"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Boxes.__init__(self)
|
Boxes.__init__(self)
|
||||||
|
@ -152,7 +152,7 @@ class FlexBox(Boxes):
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
b = FlexBox() #100, 40, 100, r=20, h=10, thickness=4.0)
|
b = FlexBox3() #100, 40, 100, r=20, h=10, thickness=4.0)
|
||||||
b.parseArgs()
|
b.parseArgs()
|
||||||
b.render()
|
b.render()
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
from boxes import *
|
from boxes import *
|
||||||
import math
|
import math
|
||||||
|
|
||||||
class FlexBox(Boxes):
|
class FlexBox4(Boxes):
|
||||||
"""Box with living hinge and left corners rounded"""
|
"""Box with living hinge and left corners rounded"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Boxes.__init__(self)
|
Boxes.__init__(self)
|
||||||
|
@ -99,7 +99,7 @@ class FlexBox(Boxes):
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
b = FlexBox()
|
b = FlexBox4()
|
||||||
b.parseArgs()
|
b.parseArgs()
|
||||||
b.render()
|
b.render()
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
from boxes import *
|
from boxes import *
|
||||||
|
|
||||||
class FlexTest(Boxes):
|
class FlexTest2(Boxes):
|
||||||
"Piece for testing different flex settings"
|
"Piece for testing different flex settings"
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Boxes.__init__(self)
|
Boxes.__init__(self)
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
from boxes import *
|
from boxes import *
|
||||||
|
|
||||||
class Box(Boxes):
|
class MagazinFile(Boxes):
|
||||||
"""Open magazine file"""
|
"""Open magazine file"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Boxes.__init__(self)
|
Boxes.__init__(self)
|
||||||
|
@ -86,7 +86,7 @@ class Box(Boxes):
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
b = Box()
|
b = MagazinFile()
|
||||||
b.parseArgs()
|
b.parseArgs()
|
||||||
b.render()
|
b.render()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue