summaryrefslogtreecommitdiff
path: root/trunk/users/metalab/AoI/plugins/cad_parameters.txt
blob: 40bc83434c25a06cb13a2e844c36614f1231b39f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
maxx=10	
maxy=10
scale=2
cubeSize=0.5


i=2


scaling=2
radius=scaling*10
dicke=scaling*5
hoehe=scaling*5
kugelradius=scaling*9

cut= (radius+dicke+kugelradius+1)*2

##############
# Geneva Drive
###############

gearCuts=5

gearHeight=3
pegRadius=2
pegHoleRadius=2.1

#red
gearRadiusBig=40
gearRadiusSmall=10.5

# green
driveRadiusBig = 25
driveRadiusSmall = 14

driveGearOverlap=10
drivePos= (gearRadiusBig+driveRadiusSmall)-driveGearOverlap

baseHeight=4
baseWidth=25
baseLenght=60


pegX=(gearRadiusBig*gearRadiusBig - (driveRadiusSmall*driveRadiusSmall - drivePos*drivePos))/(2*drivePos)
pegY=(gearRadiusBig*gearRadiusBig-pegX*pegX)^0.5

_pegX=cos(0.5*2*pi/gearCuts)*gearRadiusBig
_pegY=sin(0.5*2*pi/gearCuts)*gearRadiusBig
pegX=drivePos + ((_pegX-drivePos)^2+_pegY^2)^0.5
pegY=0

#debug position of peg when it enters slice
#pegX=cos(0.5*2*pi/gearCuts)*gearRadiusBig
#pegY=sin(0.5*2*pi/gearCuts)*gearRadiusBig


i=3