Use proper radius value for r_fo2

This commit is contained in:
Priit Laes 2024-02-16 22:32:04 +02:00 committed by Ruud
parent 9b364e410c
commit b4abd1d474
3 changed files with 5 additions and 5 deletions

View file

@ -229,11 +229,11 @@ module block_base_solid(dbnx, dbny, l, o) {
union() {
hull() {
rounded_rectangle(xx-2*r_c2-2*r_c1+o, yy-2*r_c2-2*r_c1+o, h_base+oo, r_fo3);
rounded_rectangle(xx-2*r_c2+o, yy-2*r_c2+o, h_base-r_c1+oo, r_fo2/2);
rounded_rectangle(xx-2*r_c2+o, yy-2*r_c2+o, h_base-r_c1+oo, r_fo2);
}
translate([0,0,oo])
hull() {
rounded_rectangle(xx-2*r_c2+o, yy-2*r_c2+o, r_c2, r_fo2/2);
rounded_rectangle(xx-2*r_c2+o, yy-2*r_c2+o, r_c2, r_fo2);
mirror([0,0,1])
rounded_rectangle(xx+o, yy+o, h_bot/2+abs(10*o), r_fo1/2);
}

View file

@ -217,10 +217,10 @@ module block_base_blank(o = 0) {
mirror([0,0,1]) {
hull() {
rounded_square(l_grid-o-0.05-2*r_c2-2*r_c1, h_base, r_fo3);
rounded_square(l_grid-o-0.05-2*r_c2, h_base-r_c1, r_fo2/2);
rounded_square(l_grid-o-0.05-2*r_c2, h_base-r_c1, r_fo2);
}
hull() {
rounded_square(l_grid-o-0.05-2*r_c2, r_c2, r_fo2/2);
rounded_square(l_grid-o-0.05-2*r_c2, r_c2, r_fo2);
mirror([0,0,1])
rounded_square(l_grid-o-0.05, d_bottom, r_fo1/2);
}

View file

@ -12,7 +12,7 @@ h_bot = 2.2;
// outside radii 1
r_fo1 = 8.5;
// outside radii 2
r_fo2 = 3.2;
r_fo2 = 3.2 / 2;
// outside radii 3
r_fo3 = 1.6 / 2;
// length of a grid unit