Add param for gears

This commit is contained in:
Florian Festi 2016-07-17 17:24:40 +02:00
parent ed8ab9a364
commit 575f41beff
1 changed files with 9 additions and 4 deletions

View File

@ -79,14 +79,19 @@ class GearBox(Boxes):
self.rectangularWall(x, y, "ffff", move="up")
profile_shift = 20
pressure_angle = 20
for i in range(self.stages-1):
self.gears(teeth=self.teeth2, dimension=self.modulus,
mount_hole=mh, move="up")
angle=pressure_angle,
mount_hole=mh, profile_shift=profile_shift, move="up")
self.gears(teeth=self.teeth2, dimension=self.modulus,
mount_hole=mh, move="right")
angle=pressure_angle,
mount_hole=mh, profile_shift=profile_shift, move="right")
for i in range(self.stages):
self.gears(teeth=self.teeth1, dimension=self.modulus,
mount_hole=mh, move="down")
angle=pressure_angle,
mount_hole=mh, profile_shift=profile_shift, move="down")
self.close()