From 1c95f7f6c958fcb9e09681ea4b98a7db3e588916 Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Mon, 12 Apr 2021 02:30:50 -0700 Subject: [PATCH] Fix onion() example. --- shapes.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shapes.scad b/shapes.scad index c25f1eba..f0984fea 100644 --- a/shapes.scad +++ b/shapes.scad @@ -1588,7 +1588,7 @@ module onion(r, ang=45, cap_h, d, anchor=CENTER, spin=0, orient=UP) rotate_extrude(convexity=2) { difference() { teardrop2d(r=r, ang=ang, cap_h=cap_h); - left(r) square(size=[2*r,2*cap_h], center=true); + left(r) square(size=[2*r,2*max(cap_h,r)+1], center=true); } } children();