-
Notifications
You must be signed in to change notification settings - Fork 97
/
linear_bushing.scad
33 lines (31 loc) · 1019 Bytes
/
linear_bushing.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
module linear_bushing(inside_diameter, inside_factor, outside_diameter,
height, sides, angle, wall) {
intersection() {
union() {
difference() {
cylinder(r=outside_diameter/2, h=height,
center=true, $fn=sides*2);
cylinder(r=outside_diameter/2-wall, h=height+1,
center=true, $fn=sides*2);
}
for (side = [1 : sides]) {
rotate([0, 0, 360 * side / sides]) {
translate([outside_diameter/2, 0, 0])
rotate([0, 0, angle])
cube([(outside_diameter-inside_diameter*inside_factor)
/cos(angle), wall, height], center=true);
}
}
}
cylinder(r=outside_diameter/2, h=height, center=true, $fn=sides*2);
}
}
// This will produce a test grid for wall thickness and inside_factor, then
// you can try which size fits best for your printer and slicer settings.
for (x = [0 : 0]) {
translate([20*x, 0, 0]) {
linear_bushing(inside_diameter=8, inside_factor=0.975+0.005*x,
outside_diameter=15,
height=24, sides=16, angle=20, wall=0.9);
}
}