-
Notifications
You must be signed in to change notification settings - Fork 0
/
DuelExt_Idler.coscad
68 lines (56 loc) · 1.48 KB
/
DuelExt_Idler.coscad
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
64
65
66
67
68
skateBearing = (innerR, outerR, rimwidth, hubwidth, hubR)->
sub_shaft = new Cylinder
r: innerR
h: rimwidth
center: true
hub = new Cylinder
r: hubR
h: hubwidth
center: true
rim = new Cylinder
r: outerR
h: rimwidth
center: true
sub_hub = new Cylinder
r: hubR
h: rimwidth
center: true
bearing = rim.subtract(sub_hub)
bearing = bearing.union(hub)
return bering = bearing.subtract(sub_shaft)
#Bearing608_hubloose = skateBearing(4, 11.5, 6.5, 6.5, 6)
Bearing608_rimloose = skateBearing(4, 11.5, 7.5, 7, 7)
bearingshaft = new Cylinder
r: 4
h: 18
center: true
bearing_sub = Bearing608_rimloose.union(bearingshaft)
#bearing_sub = bearingshaft
bearing_sub = bearing_sub.rotate [0, 90, 0]
bearing_sub = bearing_sub.translate [0, 0, 15]
hingeshaft = new Cylinder
r: 1.5
h: 25
center: true
hingeshaft = hingeshaft.rotate [0, 90, 0]
hingeshaft = hingeshaft.translate [0, -20, 20]
hinge_sub = new Cylinder
r: 6
h: 13
center: true
hinge_sub = hinge_sub.rotate [0, 90, 0]
hinge_sub = hinge_sub.translate [0, -20, 20]
hinge_sub = hinge_sub.union(hingeshaft)
base_block = new Cube
size: [25, 30, 20]
center: [0, 0, 10]
hinge_block = new Cylinder
r: 5
h: 25
center: true
hinge_block = hinge_block.rotate [0, 90, 0]
hinge_block = hinge_block.translate [0, -20, 20]
idler = base_block.union(hinge_block) #hull this when hull availible
idler = idler.subtract([hinge_sub, bearing_sub])
return idler
#return Bearing608_hubloose