diff --git a/v1/scad/lib/extension.scad b/v1/scad/lib/generic/extension_clip.scad similarity index 88% rename from v1/scad/lib/extension.scad rename to v1/scad/lib/generic/extension_clip.scad index c3f8a23..650c021 100644 --- a/v1/scad/lib/extension.scad +++ b/v1/scad/lib/generic/extension_clip.scad @@ -1,8 +1,8 @@ use use -module extension(h) { - assert(h >= 14, "minimum extension height is 14"); +module extension_clip(h) { + assert(h >= 14, "minimum extension_clip height is 14"); // Bottom spoolmount spoolmount_b(); @@ -41,4 +41,4 @@ module extension(h) { ]); } -extension(h=25); \ No newline at end of file +extension_clip(h=25); \ No newline at end of file diff --git a/v1/scad/lib/extension_twist.scad b/v1/scad/lib/generic/extension_twist.scad similarity index 86% rename from v1/scad/lib/extension_twist.scad rename to v1/scad/lib/generic/extension_twist.scad index a2c3899..8bc657d 100644 --- a/v1/scad/lib/extension_twist.scad +++ b/v1/scad/lib/generic/extension_twist.scad @@ -1,7 +1,7 @@ use module extension_twist(h, twist) { - assert(h >= 10, "minimum extension height is 10"); + assert(h >= 10, "minimum extension_twist height is 10"); // Bottom spoolmount twist spoolmount_twist(); diff --git a/v1/scad/objects/ptfe_guide.scad b/v1/scad/lib/generic/ptfe_guide_4.scad similarity index 85% rename from v1/scad/objects/ptfe_guide.scad rename to v1/scad/lib/generic/ptfe_guide_4.scad index 0d7f197..6b95cd0 100644 --- a/v1/scad/objects/ptfe_guide.scad +++ b/v1/scad/lib/generic/ptfe_guide_4.scad @@ -1,6 +1,6 @@ -use <../lib/screw_hole.scad> +use <../util/screw_hole_m3.scad> -module ptfe_guide() { +module ptfe_guide_4() { translate([0, 0, 5]) difference() { hull() { @@ -16,7 +16,7 @@ module ptfe_guide() { // Screw hole translate([0, 0, -5]) - screw_hole(10); + screw_hole_m3(h=10); // PTFE holes for (x = [-18, -10, 10, 18]) { @@ -27,4 +27,4 @@ module ptfe_guide() { } } -ptfe_guide(); \ No newline at end of file +ptfe_guide_4(); \ No newline at end of file diff --git a/v1/scad/objects/spool_holder_simple.scad b/v1/scad/lib/generic/spool_holder_clip.scad similarity index 65% rename from v1/scad/objects/spool_holder_simple.scad rename to v1/scad/lib/generic/spool_holder_clip.scad index a61aa73..05bb684 100644 --- a/v1/scad/objects/spool_holder_simple.scad +++ b/v1/scad/lib/generic/spool_holder_clip.scad @@ -1,7 +1,9 @@ -use <../lib/spoolmount_b.scad> -use <../lib/torus.scad> +use +use <../util/torus.scad> + +module spool_holder_clip(h) { + assert(h >= 25, "minimum spool_holder_clip height is 25"); -module spool_holder_simple() { spoolmount_b(); // Fill in spoolmount @@ -9,7 +11,7 @@ module spool_holder_simple() { // Main body translate([0, 0, 5]) - cylinder(h=95, r=12, $fn=200); + cylinder(h=h - 5, r=12, $fn=200); // Base fan in translate([0, 0, 5]) @@ -23,11 +25,11 @@ module spool_holder_simple() { } // Cap - translate([0, 0, 95]) + translate([0, 0, h - 5]) cylinder(h=5, r=17, $fn=200); // Cap fan out - translate([0, 0, 90]) + translate([0, 0, h - 10]) rotate_extrude($fn=200) polygon(points=[ [12, 0], @@ -36,8 +38,8 @@ module spool_holder_simple() { ]); // Cap rounded edge - translate([0, 0, 97.5]) + translate([0, 0, h - 2.5]) torus(r_major=17, r_minor=2.5, xs=0.7, $fn=200); } -spool_holder_simple(); \ No newline at end of file +spool_holder_clip(h=100); \ No newline at end of file diff --git a/v1/scad/objects/spool_holder_simple_twist.scad b/v1/scad/lib/generic/spool_holder_twist.scad similarity index 67% rename from v1/scad/objects/spool_holder_simple_twist.scad rename to v1/scad/lib/generic/spool_holder_twist.scad index aa71e2b..f888714 100644 --- a/v1/scad/objects/spool_holder_simple_twist.scad +++ b/v1/scad/lib/generic/spool_holder_twist.scad @@ -1,7 +1,9 @@ -use <../lib/spoolmount_twist.scad> -use <../lib/torus.scad> +use +use <../util/torus.scad> + +module spool_holder_twist(h) { + assert(h >= 25, "minimum spool_holder_twist height is 25"); -module spool_holder_simple_twist() { spoolmount_twist(); // Main body @@ -20,11 +22,11 @@ module spool_holder_simple_twist() { } // Cap - translate([0, 0, 95]) + translate([0, 0, h - 5]) cylinder(h=5, r=17, $fn=200); // Cap fan out - translate([0, 0, 90]) + translate([0, 0, h - 10]) rotate_extrude($fn=200) polygon(points=[ [12, 0], @@ -33,8 +35,8 @@ module spool_holder_simple_twist() { ]); // Cap rounded edge - translate([0, 0, 97.5]) + translate([0, 0, h - 2.5]) torus(r_major=17, r_minor=2.5, xs=0.7, $fn=200); } -spool_holder_simple_twist(); \ No newline at end of file +spool_holder_twist(h=100); \ No newline at end of file diff --git a/v1/scad/lib/spoolmount.scad b/v1/scad/lib/generic/spoolmount.scad similarity index 97% rename from v1/scad/lib/spoolmount.scad rename to v1/scad/lib/generic/spoolmount.scad index c8961e5..afdd359 100644 --- a/v1/scad/lib/spoolmount.scad +++ b/v1/scad/lib/generic/spoolmount.scad @@ -1,4 +1,4 @@ -use +use <../util/torus.scad> module spoolmount() { // Ring diff --git a/v1/scad/lib/spoolmount_a.scad b/v1/scad/lib/generic/spoolmount_a.scad similarity index 100% rename from v1/scad/lib/spoolmount_a.scad rename to v1/scad/lib/generic/spoolmount_a.scad diff --git a/v1/scad/lib/spoolmount_b.scad b/v1/scad/lib/generic/spoolmount_b.scad similarity index 100% rename from v1/scad/lib/spoolmount_b.scad rename to v1/scad/lib/generic/spoolmount_b.scad diff --git a/v1/scad/lib/spoolmount_twist.scad b/v1/scad/lib/generic/spoolmount_twist.scad similarity index 98% rename from v1/scad/lib/spoolmount_twist.scad rename to v1/scad/lib/generic/spoolmount_twist.scad index 51fc05e..4115979 100644 --- a/v1/scad/lib/spoolmount_twist.scad +++ b/v1/scad/lib/generic/spoolmount_twist.scad @@ -1,4 +1,4 @@ -use +use <../util/torus.scad> module spoolmount_twist() { difference() { diff --git a/v1/scad/lib/prusa_enclosure_mount.scad b/v1/scad/lib/prusa_enclosure/mount.scad similarity index 95% rename from v1/scad/lib/prusa_enclosure_mount.scad rename to v1/scad/lib/prusa_enclosure/mount.scad index d1e75a5..a03fe08 100644 --- a/v1/scad/lib/prusa_enclosure_mount.scad +++ b/v1/scad/lib/prusa_enclosure/mount.scad @@ -1,6 +1,6 @@ -use -use -use +use <../generic/spoolmount_a.scad> +use <../util/screw_hole_m3.scad> +use <../util/torus.scad> module prusa_enclosure_mount(angle) { translate([0, 0, 13]) @@ -27,7 +27,7 @@ module prusa_enclosure_mount(angle) { // Through screw hole translate([120, 0, 0]) - screw_hole(h=18); + screw_hole_m3(h=18); // Underside washer alignment cutouts for (y = [-4, 4]) { diff --git a/v1/scad/objects/prusa_enclosure_mount_washer.scad b/v1/scad/lib/prusa_enclosure/washer.scad similarity index 100% rename from v1/scad/objects/prusa_enclosure_mount_washer.scad rename to v1/scad/lib/prusa_enclosure/washer.scad diff --git a/v1/scad/lib/hexagon.scad b/v1/scad/lib/util/hexagon.scad similarity index 100% rename from v1/scad/lib/hexagon.scad rename to v1/scad/lib/util/hexagon.scad diff --git a/v1/scad/lib/screw_hole.scad b/v1/scad/lib/util/screw_hole_m3.scad similarity index 92% rename from v1/scad/lib/screw_hole.scad rename to v1/scad/lib/util/screw_hole_m3.scad index 7cd4a74..2efebbc 100644 --- a/v1/scad/lib/screw_hole.scad +++ b/v1/scad/lib/util/screw_hole_m3.scad @@ -1,6 +1,6 @@ use -module screw_hole(h) { +module screw_hole_m3(h) { // Through screw hole translate([0, 0, -0.01]) cylinder(h=h, d=3.2, $fn=50); @@ -27,4 +27,4 @@ module screw_hole(h) { cylinder(h=1.01, d=4.4, $fn=100); } -screw_hole(h=10); \ No newline at end of file +screw_hole_m3(h=10); \ No newline at end of file diff --git a/v1/scad/lib/torus.scad b/v1/scad/lib/util/torus.scad similarity index 75% rename from v1/scad/lib/torus.scad rename to v1/scad/lib/util/torus.scad index dd0933b..9719228 100644 --- a/v1/scad/lib/torus.scad +++ b/v1/scad/lib/util/torus.scad @@ -3,4 +3,6 @@ module torus(r_major, r_minor, xs=1.0, ys=1.0) { translate([r_major, 0, 0]) scale([xs, ys, 1.0]) circle(r=r_minor); -} \ No newline at end of file +} + +torus(r_major=10, r_minor=2, xs=0.5, $fn=200); \ No newline at end of file diff --git a/v1/scad/objects/extension_25mm.scad b/v1/scad/objects/extension_25mm.scad deleted file mode 100644 index 13ec42a..0000000 --- a/v1/scad/objects/extension_25mm.scad +++ /dev/null @@ -1,3 +0,0 @@ -use <../lib/extension.scad> - -extension(h=25); \ No newline at end of file diff --git a/v1/scad/objects/extension_twist_ccw_25mm.scad b/v1/scad/objects/extension_twist_ccw_25mm.scad deleted file mode 100644 index 8df17c6..0000000 --- a/v1/scad/objects/extension_twist_ccw_25mm.scad +++ /dev/null @@ -1,3 +0,0 @@ -use <../lib/extension_twist.scad> - -extension_twist(h=25, twist=30); \ No newline at end of file diff --git a/v1/scad/objects/generic/extension_clip_25mm.scad b/v1/scad/objects/generic/extension_clip_25mm.scad new file mode 100644 index 0000000..38c0a34 --- /dev/null +++ b/v1/scad/objects/generic/extension_clip_25mm.scad @@ -0,0 +1,3 @@ +use <../../lib/generic/extension_clip.scad> + +extension_clip(h=25); \ No newline at end of file diff --git a/v1/scad/objects/generic/extension_twist_ccw_25mm.scad b/v1/scad/objects/generic/extension_twist_ccw_25mm.scad new file mode 100644 index 0000000..7d7b677 --- /dev/null +++ b/v1/scad/objects/generic/extension_twist_ccw_25mm.scad @@ -0,0 +1,3 @@ +use <../../lib/generic/extension_twist.scad> + +extension_twist(h=25, twist=30); \ No newline at end of file diff --git a/v1/scad/objects/generic/extension_twist_cw_25mm.scad b/v1/scad/objects/generic/extension_twist_cw_25mm.scad new file mode 100644 index 0000000..5a5c6c9 --- /dev/null +++ b/v1/scad/objects/generic/extension_twist_cw_25mm.scad @@ -0,0 +1,3 @@ +use <../../lib/generic/extension_twist.scad> + +extension_twist(h=25, twist=-30); \ No newline at end of file diff --git a/v1/scad/objects/generic/ptfe_guide_4.scad b/v1/scad/objects/generic/ptfe_guide_4.scad new file mode 100644 index 0000000..b79afe1 --- /dev/null +++ b/v1/scad/objects/generic/ptfe_guide_4.scad @@ -0,0 +1,3 @@ +use <../../lib/generic/ptfe_guide_4.scad> + +ptfe_guide_4(); \ No newline at end of file diff --git a/v1/scad/objects/prusa_enclosure/mount_bottom_left.scad b/v1/scad/objects/prusa_enclosure/mount_bottom_left.scad new file mode 100644 index 0000000..29c4416 --- /dev/null +++ b/v1/scad/objects/prusa_enclosure/mount_bottom_left.scad @@ -0,0 +1,3 @@ +use <../../lib/prusa_enclosure/mount.scad> + +prusa_enclosure_mount(angle=225); \ No newline at end of file diff --git a/v1/scad/objects/prusa_enclosure/mount_bottom_right.scad b/v1/scad/objects/prusa_enclosure/mount_bottom_right.scad new file mode 100644 index 0000000..141c68e --- /dev/null +++ b/v1/scad/objects/prusa_enclosure/mount_bottom_right.scad @@ -0,0 +1,3 @@ +use <../../lib/prusa_enclosure/mount.scad> + +prusa_enclosure_mount(angle=315); \ No newline at end of file diff --git a/v1/scad/objects/prusa_enclosure/mount_top_left.scad b/v1/scad/objects/prusa_enclosure/mount_top_left.scad new file mode 100644 index 0000000..a710e5e --- /dev/null +++ b/v1/scad/objects/prusa_enclosure/mount_top_left.scad @@ -0,0 +1,3 @@ +use <../../lib/prusa_enclosure/mount.scad> + +prusa_enclosure_mount(angle=135); \ No newline at end of file diff --git a/v1/scad/objects/prusa_enclosure/mount_top_right.scad b/v1/scad/objects/prusa_enclosure/mount_top_right.scad new file mode 100644 index 0000000..91f8661 --- /dev/null +++ b/v1/scad/objects/prusa_enclosure/mount_top_right.scad @@ -0,0 +1,3 @@ +use <../../lib/prusa_enclosure/mount.scad> + +prusa_enclosure_mount(angle=45); \ No newline at end of file diff --git a/v1/scad/objects/prusa_enclosure/washer.scad b/v1/scad/objects/prusa_enclosure/washer.scad new file mode 100644 index 0000000..2ec0904 --- /dev/null +++ b/v1/scad/objects/prusa_enclosure/washer.scad @@ -0,0 +1,3 @@ +use <../../lib/prusa_enclosure/washer.scad> + +prusa_enclosure_mount_washer(); \ No newline at end of file diff --git a/v1/scad/objects/prusa_enclosure_mount_top_left.scad b/v1/scad/objects/prusa_enclosure_mount_top_left.scad deleted file mode 100644 index 69d59bb..0000000 --- a/v1/scad/objects/prusa_enclosure_mount_top_left.scad +++ /dev/null @@ -1,3 +0,0 @@ -use <../lib/prusa_enclosure_mount.scad> - -prusa_enclosure_mount(angle=135); \ No newline at end of file diff --git a/v1/scad/objects/prusa_enclosure_mount_top_right.scad b/v1/scad/objects/prusa_enclosure_mount_top_right.scad deleted file mode 100644 index da57ee3..0000000 --- a/v1/scad/objects/prusa_enclosure_mount_top_right.scad +++ /dev/null @@ -1,3 +0,0 @@ -use <../lib/prusa_enclosure_mount.scad> - -prusa_enclosure_mount(angle=45); \ No newline at end of file