Notka do siebie. Pracując nad alfabetem na klockach duplo, uczyniłem taki kod ;-)
Tutorial: https://dev.to/erikaheidi/how-to-create-letter-molds-and-stamps-for-3d-printing-on-openscad-18am
```
font = "DejaVu Sans:style=Bold";
letter_size = 40;
height = 2.4;
outline_height = 0.6;
string = "DEV";
textlen = len(string);
module letter(string, height=2.4, outline_height=0.6, size=10, font, color_main=[1,1,1], color_outline=[0,0,0]) {
color(color_main)
linear_extrude(height)
text(string, size = letter_size, font = font, halign = "center", valign = "center", $fn = 64);
color(color_outline)
translate([0, 0, height])
linear_extrude(outline_height) {
difference() {
offset(delta=-0.2) {
text(string, size = letter_size, font = font, halign = "center", valign = "center", $fn = 64);
}
offset(delta=-0.8, chamfer=true) {
text(string, size = letter_size, font = font, halign = "center", valign = "center", $fn = 64);
}
}
}
}
letter("pol.social", height=2, outline_height=0.6);
```
#druk3D #3dprint #3dprinting #3ddesign #prusamk4 #openscad #openscad #PrusaPrinters #functional3dprinting #Poland #Polska #Warmia #Olsztyn