From 0cb51f32d78eb973448a826ea811450e1b110a3b Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Sun, 10 Jul 2022 18:03:22 -0700 Subject: [PATCH] Fixed semi-random cuboid() chamfer bug. --- shapes3d.scad | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/shapes3d.scad b/shapes3d.scad index 5d25685..e66ad29 100644 --- a/shapes3d.scad +++ b/shapes3d.scad @@ -247,8 +247,7 @@ module cuboid( xtcyl(l=m, r=r); multmatrix(mat) linear_extrude(height=m+0.1, center=true) - scale(r+0.02) - polygon([[1,0],[0,1],[1,1]]); + polygon([[r,0],[0.99*r,0],[0,0.99*r],[0,r],[r,r]]); } } } else if (e.y) { @@ -260,8 +259,7 @@ module cuboid( ytcyl(l=m, r=r); multmatrix(mat) linear_extrude(height=m+0.1, center=true) - scale(r+0.02) - polygon([[1,0],[0,1],[1,1]]); + polygon([[r,0],[0.99*r,0],[0,0.99*r],[0,r],[r,r]]); } } } else if (e.z) { @@ -273,8 +271,7 @@ module cuboid( zcyl(l=m, r=r); multmatrix(mat) linear_extrude(height=m+0.1, center=true) - scale(r+0.02) - polygon([[1,0],[0,1],[1,1]]); + polygon([[r,0],[0.99*r,0],[0,0.99*r],[0,r],[r,r]]); } } }