Use proper radius value for r_fo3

The same value used in baseplate is now handled as radius (instead of
diameter).
This commit is contained in:
Priit Laes 2024-02-16 22:17:49 +02:00 committed by Ruud
parent 2f2567d7a9
commit 9b364e410c
3 changed files with 3 additions and 3 deletions

View File

@ -228,7 +228,7 @@ module block_base_solid(dbnx, dbny, l, o) {
mirror([0,0,1])
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/2);
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);
}
translate([0,0,oo])

View File

@ -216,7 +216,7 @@ module block_magnet_blank(o = 0, half = true) {
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/2);
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);
}
hull() {

View File

@ -14,7 +14,7 @@ r_fo1 = 8.5;
// outside radii 2
r_fo2 = 3.2;
// outside radii 3
r_fo3 = 1.6;
r_fo3 = 1.6 / 2;
// length of a grid unit
l_grid = 42;