Files
3D/tools/palet_bag/scad/side_modeler.scad
2025-06-28 20:13:28 +02:00

68 lines
2.2 KiB
OpenSCAD

$fn=60;
include <BOSL2/std.scad>
include <boltsos_0.4.1/BOLTS.scad>
inner_d=66;
outer_d=inner_d+5;
plate_width=120;
hole_pos=plate_width/2-10;
plate_height=10;
module screw() {
cylinder(h=20, d=5.4, center=true);
rotate([0,0,0]) {
translate ([0,0,-8]) DIN931("M5");
translate ([0,0,-10]) DIN931("M5");
}
* cylinder(h=25, d=5, center=true);
translate([0,0,8]) cylinder(h=6, d=9);
}
color("blue") {
translate([0,0,10]) zcyl(l=10, d=inner_d, rounding2=2);
difference() {
cuboid([plate_width,plate_width,plate_height], rounding=1);
translate([hole_pos,hole_pos,8]) screw();
translate([hole_pos,-hole_pos,8]) screw();
translate([-hole_pos,hole_pos,8]) screw();
translate([-hole_pos,-hole_pos,8]) screw();
}
}
color("red") {
translate([0,0,15]) {
difference() {
zcyl(l=5, d=inner_d, rounding1=1, rounding2=2);
translate([0,0,-1.25]) zcyl(l=2.5, d=3);
translate([0,0,1.25]) zcyl(l=2.5, d1=3, d2=8);
}
}
}
color("cyan") {
translate([0,0,12.5]) {
difference() {
cuboid([plate_width,plate_width,plate_height], rounding=1);
zcyl(l=plate_height, d=outer_d, rounding=-2);
translate([hole_pos,hole_pos,0]) zcyl(l=plate_height, d=6, rounding=-1);
translate([hole_pos,-hole_pos,0]) zcyl(l=plate_height, d=6, rounding=-1);
translate([-hole_pos,hole_pos,0]) zcyl(l=plate_height, d=6, rounding=-1);
translate([-hole_pos,-hole_pos,0]) zcyl(l=plate_height, d=6, rounding=-1);
}
}
}
color("green") {
translate([0,0,30]) {
difference() {
cuboid([plate_width,plate_width,plate_height/2], rounding=1);
translate([hole_pos,hole_pos,0]) zcyl(l=plate_height/2, d=6, rounding=-1);
translate([hole_pos,-hole_pos,0]) zcyl(l=plate_height/2, d=6, rounding=-1);
translate([-hole_pos,hole_pos,0]) zcyl(l=plate_height/2, d=6, rounding=-1);
translate([-hole_pos,-hole_pos,0]) zcyl(l=plate_height/2, d=6, rounding=-1);
}
translate([0,0,-2.5]) linear_extrude(height = 3, center = true)
import(file = "mono_01.svg", center = true);
}
}