printer.py: Random adjustments
This commit is contained in:
parent
f4ae547877
commit
1a4e62b889
18
printer.py
18
printer.py
|
@ -6,15 +6,15 @@ class Printer(Boxes):
|
||||||
|
|
||||||
"""Work in progress"""
|
"""Work in progress"""
|
||||||
def __init__(self, r=250, h=400, d_c=100):
|
def __init__(self, r=250, h=400, d_c=100):
|
||||||
Boxes.__init__(self, 1000, 800, thickness=5.0, burn=0.05)
|
Boxes.__init__(self, 1200, 600, thickness=5.0, burn=0.05)
|
||||||
self.edges["f"].settings.setValues(self.thickness, surroundingspaces=0)
|
self.edges["f"].settings.setValues(self.thickness, surroundingspaces=0)
|
||||||
self.r = r
|
self.r = r
|
||||||
self.h = h
|
self.h = h
|
||||||
self.d_c = d_c
|
self.d_c = d_c
|
||||||
# idler
|
# idlers
|
||||||
self.D_i = 22.0
|
self.D_i = 17.0
|
||||||
self.d_i = 8.0
|
self.d_i = 5.0
|
||||||
self.w_i = 5.0 # includes washers
|
self.w_i = 7.0 # includes washers
|
||||||
|
|
||||||
|
|
||||||
def mainPlate(self, nr):
|
def mainPlate(self, nr):
|
||||||
|
@ -115,13 +115,15 @@ class Printer(Boxes):
|
||||||
lambda: self.NEMA(23, 35, 35),],
|
lambda: self.NEMA(23, 35, 35),],
|
||||||
move="right")
|
move="right")
|
||||||
# winch bucks
|
# winch bucks
|
||||||
self.rectangularWall(70, 50, edges="feee", callback=[
|
self.rectangularWall(50, 70, edges="efee", callback=[
|
||||||
|
None,
|
||||||
lambda: self.hole(35, 35, 8.5),
|
lambda: self.hole(35, 35, 8.5),
|
||||||
None,
|
None,
|
||||||
lambda: self.fingerHolesAt(10, 0, 50)], move="right")
|
lambda: self.fingerHolesAt(10, 0, 50)], move="right")
|
||||||
self.support(40, 50, move="right", pair=True)
|
self.support(40, 50, move="right", pair=True)
|
||||||
|
self.support(40, 50, move="right")
|
||||||
self.ctx.restore()
|
self.ctx.restore()
|
||||||
self.moveTo(0, 90)
|
self.moveTo(0, 80)
|
||||||
self.ctx.save()
|
self.ctx.save()
|
||||||
# idler bucks
|
# idler bucks
|
||||||
for i in range(12):
|
for i in range(12):
|
||||||
|
|
Loading…
Reference in New Issue