From 1db271b9ac4c8a64b2657f41dc4cdb2e72b05cdc Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Mon, 19 Nov 2018 15:13:15 -0800 Subject: [PATCH] Fixed inverted faces for rcylinder(). --- shapes.scad | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shapes.scad b/shapes.scad index 1ce2ce6..ffd2ecf 100644 --- a/shapes.scad +++ b/shapes.scad @@ -231,13 +231,13 @@ module rcylinder(h=1, r=1, d=undef, fillet=0.25, center=false) up(center? 0 : h/2) { rotate_extrude(angle=360, convexity=2) { hull() { - left(d/2-fillet) { + right(d/2-fillet) { yspread(h-2*fillet) { circle(r=fillet, $fn=quantup(segs(fillet), 4)); } } - left(d/2/2) square(size=[d/2, h-fillet*2], center=true); - left((d/2-fillet)/2) square(size=[d/2-fillet, h], center=true); + right(d/2/2) square(size=[d/2, h-fillet*2], center=true); + right((d/2-fillet)/2) square(size=[d/2-fillet, h], center=true); } } }