2024-07-12 09:08:58 -07:00
|
|
|
use <../util/torus.scad>
|
2024-07-10 19:09:18 -07:00
|
|
|
|
2024-07-07 08:59:07 -07:00
|
|
|
module spoolmount_twist() {
|
2024-07-07 16:15:35 -07:00
|
|
|
difference() {
|
2024-07-08 21:03:19 -07:00
|
|
|
union() {
|
|
|
|
|
difference() {
|
2024-07-10 19:09:18 -07:00
|
|
|
union() {
|
|
|
|
|
// Core cylinder body
|
|
|
|
|
translate([0, 0, 0.5])
|
|
|
|
|
cylinder(h=4, r=25, $fn=200);
|
|
|
|
|
|
|
|
|
|
// Slightly narrower bottom/top body
|
|
|
|
|
cylinder(h=5, r=24.65, $fn=200);
|
|
|
|
|
|
|
|
|
|
// Bottom outer rounded edge
|
|
|
|
|
intersection() {
|
|
|
|
|
cylinder(h=0.5, r=25, $fn=200);
|
|
|
|
|
|
|
|
|
|
translate([0, 0, 0.5])
|
|
|
|
|
torus(r_major=24.65, r_minor=0.5, xs=0.7, $fn=200);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Top outer rounded edge
|
|
|
|
|
intersection() {
|
|
|
|
|
translate([0, 0, 4.5])
|
|
|
|
|
cylinder(h=0.5, r=25, $fn=200);
|
|
|
|
|
|
|
|
|
|
translate([0, 0, 4.5])
|
|
|
|
|
torus(r_major=24.65, r_minor=0.5, xs=0.7, $fn=200);
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-07-07 16:15:35 -07:00
|
|
|
|
2024-07-08 21:03:19 -07:00
|
|
|
for (a = [45 : 90 : 335]) {
|
|
|
|
|
// Slide bump entrance cutout
|
|
|
|
|
rotate([0, 0, a - 13])
|
|
|
|
|
rotate_extrude(angle=26, $fn=200)
|
2024-07-10 19:09:18 -07:00
|
|
|
translate([23, 0, 0])
|
2024-07-08 21:03:19 -07:00
|
|
|
polygon(points=[
|
|
|
|
|
[0, -1],
|
|
|
|
|
[3, -1],
|
|
|
|
|
[3, 2.5],
|
|
|
|
|
[0, 2.5],
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
// Slide cutout
|
2024-07-09 08:11:22 -07:00
|
|
|
rotate([0, 0, a - 40])
|
|
|
|
|
rotate_extrude(angle=80, $fn=200)
|
2024-07-10 19:09:18 -07:00
|
|
|
translate([23, 0, 0])
|
2024-07-08 21:03:19 -07:00
|
|
|
polygon(points=[
|
2024-07-10 19:09:18 -07:00
|
|
|
[3, 0.5],
|
|
|
|
|
[2, 0.5],
|
2024-07-08 21:03:19 -07:00
|
|
|
[0, 2.5],
|
2024-07-10 19:09:18 -07:00
|
|
|
[2, 4.5],
|
|
|
|
|
[3, 4.5],
|
2024-07-08 21:03:19 -07:00
|
|
|
]);
|
|
|
|
|
}
|
2024-07-10 19:09:18 -07:00
|
|
|
|
|
|
|
|
// Inner cutout
|
|
|
|
|
translate([0, 0, -1])
|
|
|
|
|
cylinder(h=7, r=18, $fn=200);
|
2024-07-07 16:15:35 -07:00
|
|
|
}
|
2024-07-10 19:09:18 -07:00
|
|
|
|
2024-07-08 21:03:19 -07:00
|
|
|
// Locking bumps
|
|
|
|
|
intersection() {
|
2024-07-10 19:09:18 -07:00
|
|
|
translate([0, 0, 0.5])
|
|
|
|
|
cylinder(h=4, r=25, $fn=200);
|
2024-07-08 21:03:19 -07:00
|
|
|
|
|
|
|
|
for (a = [45 : 90 : 335]) {
|
2024-07-10 19:09:18 -07:00
|
|
|
for (o = [-19.15, 19.15]) {
|
2024-07-08 21:03:19 -07:00
|
|
|
rotate([0, 0, a + o])
|
2024-07-10 19:09:18 -07:00
|
|
|
translate([0, 23.9, 0]) {
|
2024-07-08 21:03:19 -07:00
|
|
|
translate([0, 0, 1])
|
|
|
|
|
rotate([45, 0, 0])
|
2024-07-09 08:11:22 -07:00
|
|
|
cylinder(h=3.5, d=1.1, center=true, $fn=50);
|
2024-07-08 21:03:19 -07:00
|
|
|
|
|
|
|
|
translate([0, 0, 4])
|
|
|
|
|
rotate([-45, 0, 0])
|
2024-07-09 08:11:22 -07:00
|
|
|
cylinder(h=3.5, d=1.1, center=true, $fn=50);
|
2024-07-08 21:03:19 -07:00
|
|
|
}
|
|
|
|
|
}
|
2024-07-07 16:15:35 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-07-07 08:59:07 -07:00
|
|
|
|
2024-07-08 21:03:19 -07:00
|
|
|
// Rounded cutouts
|
2024-07-07 16:15:35 -07:00
|
|
|
for (a = [45 : 90 : 335]) {
|
2024-07-09 08:11:22 -07:00
|
|
|
for (o = [-40, -20, 20, 40]) {
|
2024-07-07 16:15:35 -07:00
|
|
|
rotate([0, 0, a + o])
|
2024-07-10 19:09:18 -07:00
|
|
|
translate([0, 30.5, 0])
|
2024-07-07 16:15:35 -07:00
|
|
|
scale([0.2, 1.0, 1.0])
|
|
|
|
|
rotate_extrude($fn=200)
|
|
|
|
|
translate([5, 0, 0])
|
|
|
|
|
polygon(points=[
|
|
|
|
|
[0, 0],
|
|
|
|
|
[2.5, 2.5],
|
|
|
|
|
[0, 5],
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-07-10 19:09:18 -07:00
|
|
|
|
|
|
|
|
// Inner rounded edge
|
|
|
|
|
translate([0, 0, 2.5])
|
|
|
|
|
torus(r_major=18, r_minor=2.5, xs=0.7, $fn=200);
|
2024-07-07 08:59:07 -07:00
|
|
|
}
|
2024-07-07 16:15:35 -07:00
|
|
|
|
2024-07-07 08:59:07 -07:00
|
|
|
spoolmount_twist();
|