Create v1, scad, objects hierarchy

This commit is contained in:
Ian Gulliver
2024-07-11 09:16:54 -07:00
parent 1537b8bd1b
commit 05bbf5b8fa
20 changed files with 16 additions and 16 deletions

View File

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

View File

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

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,18 @@
module prusa_enclosure_mount_washer() {
difference() {
// Base
cube([8.9, 14, 1.5]);
// Through screw hole
translate([3.5, 7, -1])
cylinder(h=3.5, d=3.2, $fn=50);
}
translate([7.5, 3, 2])
cube([2, 2, 1], center=true);
translate([7.5, 11, 2])
cube([2, 2, 1], center=true);
}
prusa_enclosure_mount_washer();

View File

@@ -0,0 +1,47 @@
module ptfe_guide() {
translate([0, 0, 5])
difference() {
hull() {
for (x = [-22, 22]) {
for (y = [-4, 4]) {
for (z = [-3, 3]) {
translate([x, y, z])
sphere(d=4, $fn=100);
}
}
}
}
// Screw hole
{
// Top hex nut / screw cap head cutout
translate([0, 0, 3.7])
linear_extrude(2.61, center=true)
polygon(points=[
[-2.8, 1.6175],
[0, 3.235],
[2.8, 1.6175],
[2.8, -1.6175],
[0, -3.235],
[-2.8, -1.6175],
]);
// Through hole
translate([0, 0, 0])
cylinder(h=10, d=3.2, center=true, $fn=100);
// Bottom screw thread protrusion cutout
translate([0, 0, -4.5])
cylinder(h=1.01, d=4.4, center=true, $fn=100);
}
// PTFE holes
for (x = [-18, -10, 10, 18]) {
translate([x, 0, 0])
rotate([90, 0, 0])
cylinder(h=14, d=4.4, center=true, $fn=100);
}
}
}
ptfe_guide();

View File

@@ -0,0 +1,43 @@
use <../lib/spoolmount_b.scad>
use <../lib/torus.scad>
module spool_holder_simple() {
spoolmount_b();
// Fill in spoolmount
cylinder(h=5, r=26);
// Main body
translate([0, 0, 5])
cylinder(h=95, r=12, $fn=200);
// Base fan in
translate([0, 0, 5])
rotate_extrude($fn=200)
translate([12, 0])
difference() {
square(10);
translate([10, 10])
circle(r=10);
}
// Cap
translate([0, 0, 95])
cylinder(h=5, r=17, $fn=200);
// Cap fan out
translate([0, 0, 90])
rotate_extrude($fn=200)
polygon(points=[
[12, 0],
[17, 5],
[12, 5],
]);
// Cap rounded edge
translate([0, 0, 97.5])
torus(r_major=17, r_minor=2.5, xs=0.7, $fn=200);
}
spool_holder_simple();

View File

@@ -0,0 +1,40 @@
use <../lib/spoolmount_twist.scad>
use <../lib/torus.scad>
module spool_holder_simple_twist() {
spoolmount_twist();
// Main body
translate([0, 0, 5])
cylinder(h=95, r=12, $fn=200);
// Base fan in
translate([0, 0, 5])
rotate_extrude($fn=200)
translate([12, 0])
difference() {
square(10);
translate([10, 10])
circle(r=10);
}
// Cap
translate([0, 0, 95])
cylinder(h=5, r=17, $fn=200);
// Cap fan out
translate([0, 0, 90])
rotate_extrude($fn=200)
polygon(points=[
[12, 0],
[17, 5],
[12, 5],
]);
// Cap rounded edge
translate([0, 0, 97.5])
torus(r_major=17, r_minor=2.5, xs=0.7, $fn=200);
}
spool_holder_simple_twist();