Sign scripts version 4
Added 2022-06-25 01:27:49 +0000 UTCWhen I released the video with the scripts for making the signs it was pointed out that because I had moved from processing in 3D to 2D I could replace the minkowski command with the offset command.
It shaves some lines of code off the scripts, but strangely it doesn't shave any render time off despite working natively in 2D. I guess maybe the minkowski code is just as efficient with a 2D object.
Here it is for comparison and speed tests:-
//Sign body maker V4 - bigclivedotcom
//offset command instead of minkowski
letter = "A"; //Sign character to make
style = "Arial"; //See "Help" and "Font List"
size = 50; //Size of character (height)
depth = 10; //Depth of sign character
$fn=100; //Curve facets - higher is smoother
walls = 2; //Side wall thickness
base=.4; //Base thickness (-1 for open back)
face = 1; //Face thickness
//Don't change variables below here
sized=size-(2*walls);
difference(){
linear_extrude(height=depth)
offset (r=walls)
text(letter,sized,style);
//Lip for front face (half wall thickness)
translate([0,0,depth-face])
linear_extrude(height=2*face)
offset (r=walls/2)
text(letter,sized,style);
//hollow core of letter
translate([0,0,base])
linear_extrude(height=depth+2)
text(letter,sized,style);
}
//Sign front-face generator V4 - bigclivedotcom
//offset command instead of minkowski
//All variables must match the sign body sizes
letter = "A"; //Sign character to make
style = "Arial"; //See "Help" and "Font List"
size = 50; //Size of character
$fn=100; //Curve facets - higher is smoother
walls = 2; //Side wall thickness
face = 1; //Face thickness
fit = 0.5; //Slight shrink of face for easier fitting
//Don't change variables below here
sized=size-(2*walls);
linear_extrude(height=face)
offset(r=(walls/2)-fit/2)
text(letter,sized,style);