-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathspacer2.scad
33 lines (28 loc) · 1.05 KB
/
spacer2.scad
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
innerDiameter = 5.7;
outerDiameter = 10;
lipDiameter = 8;
shortAxisInsideWidth = 41.7;
smallBearingWidth = 5;
shortAxisBearingSpacerHeight1 = 1.5;
shortAxisBearingSpacerHeight2 = shortAxisInsideWidth - 3 * smallBearingWidth - shortAxisBearingSpacerHeight1;
longAxisInsideWidth = 19.7;
longAxisBearingSpacerHeight = (longAxisInsideWidth - 2 * smallBearingWidth)/2;
module Spacer(height, lipHeight) {
difference() {
hull() {
cylinder(h=height-lipHeight, r=outerDiameter/2, $fn=90);
cylinder(h=height, r=lipDiameter/2, $fn=90);
}
cylinder(h=height, r=innerDiameter/2, $fn=90);
}
}
module ShortAxisSpacers() {
for(i=[outerDiameter/2+2, outerDiameter*3/2+4]) {
translate([-outerDiameter/2-2,i,0]) Spacer(shortAxisBearingSpacerHeight1, 1);
translate([outerDiameter/2+2,i,0]) Spacer(shortAxisBearingSpacerHeight2, 1);
}
for(i=[-outerDiameter/2-2,outerDiameter/2+2],j=[-outerDiameter/2-2,-3*outerDiameter/2-4]) {
translate([i,j,0]) Spacer(shortAxisInsideWidth,0);
}
}
ShortAxisSpacers();