Fix width of gearbox to make space for two big gears

This commit is contained in:
Florian Festi 2016-07-17 15:40:56 +02:00
parent 23c2dd3b09
commit ed8ab9a364
1 changed files with 9 additions and 4 deletions

View File

@ -50,16 +50,21 @@ class GearBox(Boxes):
t = self.thickness
x = 1.1*t*self.stages
y = size1 + size2
if self.stages == 1:
y = size1 + size2
y1 = y/2-(pitch1+pitch2)+pitch1
y2 = y/2+(pitch1+pitch2)-pitch2
else:
y = 2 * size2
y1 = y/2 - (pitch1+pitch2)/2
y2 = y/2 + (pitch1+pitch2)/2
h = max(size1, size2) + t
b = "F"
t = "e" # prepare for close box
mh = self.shaft
# render your parts here
y1 = y/2-(pitch1+pitch2)+pitch1
y2 = y/2+(pitch1+pitch2)-pitch2
def sideCB():
self.hole(y1, h/2, mh/2)