Port spoolmount library refactor: add bump, consolidate extension_twist, drop clip variant
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
use <spoolmount.scad>
|
||||
|
||||
module extension_clip(h) {
|
||||
assert(h >= 14, "minimum extension_clip height is 14");
|
||||
|
||||
// Bottom spoolmount
|
||||
spoolmount();
|
||||
|
||||
// Top spoolmount
|
||||
translate([0, 0, h - 5])
|
||||
spoolmount();
|
||||
|
||||
translate([0, 0, 4]) {
|
||||
// Inner center cylinder
|
||||
difference() {
|
||||
cylinder(h=h - 8, r=29, $fn=200);
|
||||
|
||||
translate([0, 0, -1])
|
||||
cylinder(h=h - 6, r=25.1, $fn=200);
|
||||
}
|
||||
|
||||
difference() {
|
||||
cylinder(h=h - 8, r=42, $fn=200);
|
||||
|
||||
translate([0, 0, -1])
|
||||
cylinder(h=h - 6, r=37, $fn=200);
|
||||
}
|
||||
}
|
||||
|
||||
// Expansion to support top spoolmount
|
||||
translate([0, 0, h - 9])
|
||||
rotate_extrude($fn=200)
|
||||
polygon(points=[
|
||||
[29, 0],
|
||||
[29, 5],
|
||||
[37, 5],
|
||||
[37, 0],
|
||||
[33, 4],
|
||||
[29, 0],
|
||||
]);
|
||||
}
|
||||
|
||||
extension_clip(h=25);
|
||||
@@ -1,6 +1,6 @@
|
||||
use <spoolmount-twist.scad>
|
||||
|
||||
module extension_twist(h, twist) {
|
||||
module extension_twist(h) {
|
||||
assert(h >= 10, "minimum extension_twist height is 10");
|
||||
|
||||
// Bottom spoolmount twist
|
||||
@@ -8,7 +8,7 @@ module extension_twist(h, twist) {
|
||||
|
||||
// Top spoolmount twist
|
||||
translate([0, 0, h])
|
||||
rotate([180, 0, twist])
|
||||
rotate([180, 0, 90])
|
||||
spoolmount_twist();
|
||||
|
||||
difference() {
|
||||
@@ -27,4 +27,4 @@ module extension_twist(h, twist) {
|
||||
}
|
||||
}
|
||||
|
||||
extension_twist(h=25, twist=30);
|
||||
extension_twist(h=25);
|
||||
@@ -0,0 +1,48 @@
|
||||
module spoolmount_hook() {
|
||||
difference() {
|
||||
// Hook body
|
||||
linear_extrude(9) {
|
||||
polygon(points=[
|
||||
[0, 0],
|
||||
[0, 12],
|
||||
[1, 12],
|
||||
[3, 10],
|
||||
[7, 10],
|
||||
[9, 12],
|
||||
[10, 12],
|
||||
[10, 8],
|
||||
[8, 6],
|
||||
[5, 6],
|
||||
[5, 2],
|
||||
[3, 2],
|
||||
[1, 0],
|
||||
]);
|
||||
|
||||
translate([8, 8])
|
||||
circle(r=2, $fn=50);
|
||||
}
|
||||
|
||||
// Corner cutouts
|
||||
{
|
||||
translate([9, 10.5, -0.5])
|
||||
rotate([90, 0, 90])
|
||||
linear_extrude(3, center=true)
|
||||
polygon(points=[
|
||||
[0, 0],
|
||||
[2, 0],
|
||||
[2, 2],
|
||||
]);
|
||||
|
||||
translate([9, 10.5, 9.5])
|
||||
rotate([-90, 0, 90])
|
||||
linear_extrude(3, center=true)
|
||||
polygon(points=[
|
||||
[0, 0],
|
||||
[2, 0],
|
||||
[2, 2],
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
spoolmount_hook();
|
||||
@@ -30,7 +30,7 @@ module spoolmount_twist() {
|
||||
}
|
||||
}
|
||||
|
||||
for (a = [45 : 90 : 335]) {
|
||||
for (a = [45 : 180 : 335]) {
|
||||
// Slide bump entrance cutout
|
||||
rotate([0, 0, a - 13])
|
||||
rotate_extrude(angle=26, $fn=200)
|
||||
@@ -43,8 +43,8 @@ module spoolmount_twist() {
|
||||
]);
|
||||
|
||||
// Slide cutout
|
||||
rotate([0, 0, a - 40])
|
||||
rotate_extrude(angle=80, $fn=200)
|
||||
rotate([0, 0, a - 55])
|
||||
rotate_extrude(angle=110, $fn=200)
|
||||
translate([23, 0, 0])
|
||||
polygon(points=[
|
||||
[3, 0.5],
|
||||
@@ -66,7 +66,7 @@ module spoolmount_twist() {
|
||||
cylinder(h=4, r=25, $fn=200);
|
||||
|
||||
for (a = [45 : 90 : 335]) {
|
||||
for (o = [-19.15, 19.15]) {
|
||||
for (o = [-34.15, 34.15]) {
|
||||
rotate([0, 0, a + o])
|
||||
translate([0, 23.9, 0]) {
|
||||
translate([0, 0, 1])
|
||||
@@ -83,9 +83,9 @@ module spoolmount_twist() {
|
||||
}
|
||||
|
||||
// Rounded cutouts
|
||||
for (a = [45 : 90 : 335]) {
|
||||
for (o = [-40, -20, 20, 40]) {
|
||||
rotate([0, 0, a + o])
|
||||
for (a = [45 : 180 : 335]) {
|
||||
for (o = [-55, -35, 35, 55]) {
|
||||
rotate([0, 0, a + 90 + o])
|
||||
translate([0, 30.5, 0])
|
||||
scale([0.2, 1.0, 1.0])
|
||||
rotate_extrude($fn=200)
|
||||
|
||||
@@ -43,6 +43,15 @@ module spoolmount(h=5) {
|
||||
[-4, -1],
|
||||
]);
|
||||
|
||||
rotate([90, 0, 90])
|
||||
linear_extrude(4, center=true)
|
||||
polygon(points=[
|
||||
[-6, -1],
|
||||
[-4, 1],
|
||||
[4, 1],
|
||||
[6, -1],
|
||||
]);
|
||||
|
||||
// Access cutout
|
||||
if (h > 5) {
|
||||
difference() {
|
||||
@@ -78,7 +87,7 @@ module spoolmount(h=5) {
|
||||
intersection() {
|
||||
cylinder(h=5, r=25.1, $fn=200);
|
||||
|
||||
for (a = [45 : 90 : 335]) {
|
||||
for (a = [45 : 180 : 335]) {
|
||||
// Locking bumps
|
||||
rotate([0, 0, a - 10])
|
||||
rotate_extrude(angle=20, $fn=200)
|
||||
@@ -93,7 +102,7 @@ module spoolmount(h=5) {
|
||||
|
||||
// Rounded bump ends
|
||||
for (o = [-10, 10]) {
|
||||
rotate([0, 0, a + o])
|
||||
rotate([0, 0, a + 90 + o])
|
||||
translate([0, 30.1, 0])
|
||||
scale([0.2, 1.0, 1.0])
|
||||
rotate_extrude($fn=200)
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
use <../../lib/generic/extension-clip.scad>
|
||||
|
||||
extension_clip(h=25);
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
use <../../lib/generic/extension-twist.scad>
|
||||
|
||||
extension_twist(h=25, twist=30);
|
||||
extension_twist(h=25);
|
||||
@@ -1,3 +0,0 @@
|
||||
use <../../lib/generic/extension-twist.scad>
|
||||
|
||||
extension_twist(h=25, twist=-30);
|
||||
Reference in New Issue
Block a user