3d_print/Sasza/dyfuzor_emisar.scad
2025-11-02 15:53:42 +01:00

27 lines
No EOL
531 B
OpenSCAD

include <BOSL2/std.scad>
// latarka = ["D4", 28];
// latarka = ["D1", 35];
// latarka = ["DM11", 40];
latarka = ["K1", 72.3];
od = latarka[1];
txt = latarka[0];
t = 2;
top_t = 0.75;
h = 20;
step_h = 12;
$fn=360;
difference() {
cyl(h=step_h, d=od+2*t);
cyl(h=step_h+0.01, d1=od+0.5, d2=od, rounding1=-1, chamfer2=1);
xrot(90) up(50 + od/2 + t/2) text3d(txt, h=100, center=true, size=step_h-1);
}
up(step_h/2) difference() {
sphere(d=od+2*t);
sphere(d=od+2*t - 2*top_t);
down(50) cuboid([100,100,100]);
}