Files
spoolmount/v1/scad/lib/prusa_enclosure/mount.scad

97 lines
2.9 KiB
OpenSCAD
Raw Normal View History

2024-07-19 22:05:23 -07:00
use <../generic/spoolmount.scad>
2024-07-12 09:08:58 -07:00
use <../util/screw_hole_m3.scad>
use <../util/torus.scad>
2024-07-06 15:09:58 -07:00
2024-07-14 14:36:14 -07:00
module prusa_enclosure_mount(angle, h=10) {
2024-07-20 14:54:09 -07:00
translate([0, 0, h])
rotate([180, 0, angle])
spoolmount(h=h);
2024-07-06 15:09:58 -07:00
difference() {
union() {
for (yo = [-20, 20]) {
translate([0, yo, 0])
difference() {
// Side body
hull() {
2024-07-20 15:19:10 -07:00
for (x = [41, 127]) {
2024-07-06 15:09:58 -07:00
for (y = [-7, 7]) {
2024-07-14 14:36:14 -07:00
for (z = [2.5, h - 2.5]) {
2024-07-06 15:09:58 -07:00
translate([x, y, z])
scale([0.7, 0.7, 1.0])
sphere(d=5, $fn=50);
}
}
}
}
// Through screw hole
2024-07-11 12:07:13 -07:00
translate([120, 0, 0])
2024-07-14 14:36:14 -07:00
screw_hole_m3(h=h);
2024-07-06 15:09:58 -07:00
// Underside washer alignment cutouts
for (y = [-4, 4]) {
translate([124, y, 1])
cube([2.1, 2.1, 2.01], center=true);
2024-07-06 15:09:58 -07:00
}
}
}
// Center body
hull() {
2024-07-20 15:19:10 -07:00
for (x = [43, 115]) {
2024-07-06 15:09:58 -07:00
for (y = [-25, 25]) {
2024-07-14 14:36:14 -07:00
for (z = [2.5, h - 2.5]) {
2024-07-06 15:09:58 -07:00
translate([x, y, z])
scale([0.7, 0.7, 1.0])
sphere(d=5, $fn=50);
}
}
}
}
2024-07-20 14:54:09 -07:00
// Corner patches
for (ys = [-1, 1]) {
hull() {
for (z = [2.5, h - 2.5]) {
translate([35, ys * 27, z])
scale([0.7, 0.7, 1.0])
sphere(d=5, $fn=50);
2024-07-20 15:19:10 -07:00
translate([41, ys * 27, z])
2024-07-20 14:54:09 -07:00
scale([0.7, 0.7, 1.0])
sphere(d=5, $fn=50);
2024-07-20 15:19:10 -07:00
translate([44, ys * 5, z])
2024-07-20 14:54:09 -07:00
scale([0.7, 0.7, 1.0])
sphere(d=5, $fn=50);
2024-07-06 15:09:58 -07:00
}
}
2024-07-11 12:07:13 -07:00
}
}
2024-07-06 15:09:58 -07:00
// Weight reduction holes rows 1/5
2024-07-20 14:54:09 -07:00
for (x = [46.5 : 12 : 107]) {
2024-07-06 15:09:58 -07:00
for (y = [-20 : 40 : 20]) {
translate([x, y, -1])
2024-07-14 14:36:14 -07:00
cylinder(h=h + 2, d=9, $fn=50);
2024-07-06 15:09:58 -07:00
}
}
// Weight reduction holes rows 2/4
2024-07-20 14:54:09 -07:00
for (x = [53 : 12 : 107]) {
2024-07-06 15:09:58 -07:00
for (y = [-10 : 20 : 10]) {
translate([x, y, -1])
2024-07-14 14:36:14 -07:00
cylinder(h=h + 2, d=9, $fn=50);
2024-07-06 15:09:58 -07:00
}
}
// Weight reduction holes row 3
2024-07-20 14:54:09 -07:00
for (x = [58.5 : 12 : 107]) {
2024-07-06 15:09:58 -07:00
translate([x, 0, -1])
2024-07-14 14:36:14 -07:00
cylinder(h=h + 2, d=9, $fn=50);
2024-07-06 15:09:58 -07:00
}
}
}
2024-07-20 14:54:09 -07:00
prusa_enclosure_mount(angle=15);