Path reorg

This commit is contained in:
Ian Gulliver
2024-07-12 09:08:58 -07:00
parent a0867baac9
commit dc7d3a9252
27 changed files with 65 additions and 44 deletions

View File

@@ -1,8 +1,8 @@
use <spoolmount_a.scad> use <spoolmount_a.scad>
use <spoolmount_b.scad> use <spoolmount_b.scad>
module extension(h) { module extension_clip(h) {
assert(h >= 14, "minimum extension height is 14"); assert(h >= 14, "minimum extension_clip height is 14");
// Bottom spoolmount // Bottom spoolmount
spoolmount_b(); spoolmount_b();
@@ -41,4 +41,4 @@ module extension(h) {
]); ]);
} }
extension(h=25); extension_clip(h=25);

View File

@@ -1,7 +1,7 @@
use <spoolmount_twist.scad> use <spoolmount_twist.scad>
module extension_twist(h, twist) { 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 // Bottom spoolmount twist
spoolmount_twist(); spoolmount_twist();

View File

@@ -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]) translate([0, 0, 5])
difference() { difference() {
hull() { hull() {
@@ -16,7 +16,7 @@ module ptfe_guide() {
// Screw hole // Screw hole
translate([0, 0, -5]) translate([0, 0, -5])
screw_hole(10); screw_hole_m3(h=10);
// PTFE holes // PTFE holes
for (x = [-18, -10, 10, 18]) { for (x = [-18, -10, 10, 18]) {
@@ -27,4 +27,4 @@ module ptfe_guide() {
} }
} }
ptfe_guide(); ptfe_guide_4();

View File

@@ -1,7 +1,9 @@
use <../lib/spoolmount_b.scad> use <spoolmount_b.scad>
use <../lib/torus.scad> 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(); spoolmount_b();
// Fill in spoolmount // Fill in spoolmount
@@ -9,7 +11,7 @@ module spool_holder_simple() {
// Main body // Main body
translate([0, 0, 5]) translate([0, 0, 5])
cylinder(h=95, r=12, $fn=200); cylinder(h=h - 5, r=12, $fn=200);
// Base fan in // Base fan in
translate([0, 0, 5]) translate([0, 0, 5])
@@ -23,11 +25,11 @@ module spool_holder_simple() {
} }
// Cap // Cap
translate([0, 0, 95]) translate([0, 0, h - 5])
cylinder(h=5, r=17, $fn=200); cylinder(h=5, r=17, $fn=200);
// Cap fan out // Cap fan out
translate([0, 0, 90]) translate([0, 0, h - 10])
rotate_extrude($fn=200) rotate_extrude($fn=200)
polygon(points=[ polygon(points=[
[12, 0], [12, 0],
@@ -36,8 +38,8 @@ module spool_holder_simple() {
]); ]);
// Cap rounded edge // 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); torus(r_major=17, r_minor=2.5, xs=0.7, $fn=200);
} }
spool_holder_simple(); spool_holder_clip(h=100);

View File

@@ -1,7 +1,9 @@
use <../lib/spoolmount_twist.scad> use <spoolmount_twist.scad>
use <../lib/torus.scad> 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(); spoolmount_twist();
// Main body // Main body
@@ -20,11 +22,11 @@ module spool_holder_simple_twist() {
} }
// Cap // Cap
translate([0, 0, 95]) translate([0, 0, h - 5])
cylinder(h=5, r=17, $fn=200); cylinder(h=5, r=17, $fn=200);
// Cap fan out // Cap fan out
translate([0, 0, 90]) translate([0, 0, h - 10])
rotate_extrude($fn=200) rotate_extrude($fn=200)
polygon(points=[ polygon(points=[
[12, 0], [12, 0],
@@ -33,8 +35,8 @@ module spool_holder_simple_twist() {
]); ]);
// Cap rounded edge // 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); torus(r_major=17, r_minor=2.5, xs=0.7, $fn=200);
} }
spool_holder_simple_twist(); spool_holder_twist(h=100);

View File

@@ -1,4 +1,4 @@
use <torus.scad> use <../util/torus.scad>
module spoolmount() { module spoolmount() {
// Ring // Ring

View File

@@ -1,4 +1,4 @@
use <torus.scad> use <../util/torus.scad>
module spoolmount_twist() { module spoolmount_twist() {
difference() { difference() {

View File

@@ -1,6 +1,6 @@
use <spoolmount_a.scad> use <../generic/spoolmount_a.scad>
use <screw_hole.scad> use <../util/screw_hole_m3.scad>
use <torus.scad> use <../util/torus.scad>
module prusa_enclosure_mount(angle) { module prusa_enclosure_mount(angle) {
translate([0, 0, 13]) translate([0, 0, 13])
@@ -27,7 +27,7 @@ module prusa_enclosure_mount(angle) {
// Through screw hole // Through screw hole
translate([120, 0, 0]) translate([120, 0, 0])
screw_hole(h=18); screw_hole_m3(h=18);
// Underside washer alignment cutouts // Underside washer alignment cutouts
for (y = [-4, 4]) { for (y = [-4, 4]) {

View File

@@ -1,6 +1,6 @@
use <hexagon.scad> use <hexagon.scad>
module screw_hole(h) { module screw_hole_m3(h) {
// Through screw hole // Through screw hole
translate([0, 0, -0.01]) translate([0, 0, -0.01])
cylinder(h=h, d=3.2, $fn=50); 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); cylinder(h=1.01, d=4.4, $fn=100);
} }
screw_hole(h=10); screw_hole_m3(h=10);

View File

@@ -4,3 +4,5 @@ module torus(r_major, r_minor, xs=1.0, ys=1.0) {
scale([xs, ys, 1.0]) scale([xs, ys, 1.0])
circle(r=r_minor); circle(r=r_minor);
} }
torus(r_major=10, r_minor=2, xs=0.5, $fn=200);

View File

@@ -1,3 +0,0 @@
use <../lib/extension.scad>
extension(h=25);

View File

@@ -1,3 +0,0 @@
use <../lib/extension_twist.scad>
extension_twist(h=25, twist=30);

View File

@@ -0,0 +1,3 @@
use <../../lib/generic/extension_clip.scad>
extension_clip(h=25);

View File

@@ -0,0 +1,3 @@
use <../../lib/generic/extension_twist.scad>
extension_twist(h=25, twist=30);

View File

@@ -0,0 +1,3 @@
use <../../lib/generic/extension_twist.scad>
extension_twist(h=25, twist=-30);

View File

@@ -0,0 +1,3 @@
use <../../lib/generic/ptfe_guide_4.scad>
ptfe_guide_4();

View File

@@ -0,0 +1,3 @@
use <../../lib/prusa_enclosure/mount.scad>
prusa_enclosure_mount(angle=225);

View File

@@ -0,0 +1,3 @@
use <../../lib/prusa_enclosure/mount.scad>
prusa_enclosure_mount(angle=315);

View File

@@ -0,0 +1,3 @@
use <../../lib/prusa_enclosure/mount.scad>
prusa_enclosure_mount(angle=135);

View File

@@ -0,0 +1,3 @@
use <../../lib/prusa_enclosure/mount.scad>
prusa_enclosure_mount(angle=45);

View File

@@ -0,0 +1,3 @@
use <../../lib/prusa_enclosure/washer.scad>
prusa_enclosure_mount_washer();

View File

@@ -1,3 +0,0 @@
use <../lib/prusa_enclosure_mount.scad>
prusa_enclosure_mount(angle=135);

View File

@@ -1,3 +0,0 @@
use <../lib/prusa_enclosure_mount.scad>
prusa_enclosure_mount(angle=45);