From 44361dd2bf799b6caa11df374874e7b8a9570708 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Sat, 14 Sep 2024 17:09:04 -0400 Subject: [PATCH] fix geometry offset() calls --- geometry.scad | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/geometry.scad b/geometry.scad index c8c29e5..c8271a3 100644 --- a/geometry.scad +++ b/geometry.scad @@ -1585,8 +1585,8 @@ function polygon_normal(poly) = // b=30; // ofs = 17; // curve = [for(theta=[0:10:140]) [a * theta/360*2*PI - b*sin(theta), a-b*cos(theta)-20]]; -// path = deduplicate(concat( reverse(offset(curve,r=ofs)), -// xflip(offset(curve,r=ofs)), +// path = deduplicate(concat( reverse(offset(curve,r=ofs,closed=false)), +// xflip(offset(curve,r=ofs,closed=false)), // xflip(reverse(curve)), // curve // )); @@ -1612,8 +1612,8 @@ function polygon_normal(poly) = // b=30*2/3; // ofs = 17*2/3; // curve = [for(theta=[0:10:140]) [a * theta/360*2*PI - b*sin(theta), a-b*cos(theta)]]; -// path = deduplicate(concat( reverse(offset(curve,r=ofs)), -// xflip(offset(curve,r=ofs)), +// path = deduplicate(concat( reverse(offset(curve,r=ofs,closed=false)), +// xflip(offset(curve,r=ofs,closed=false)), // xflip(reverse(curve)), // curve // )); @@ -1628,8 +1628,8 @@ function polygon_normal(poly) = // b=30*2/3; // ofs = 17*2/3; // curve = [for(theta=[0:10:140]) [a * theta/360*2*PI - b*sin(theta), a-b*cos(theta)]]; -// path = deduplicate(concat( reverse(offset(curve,r=ofs)), -// xflip(offset(curve,r=ofs)), +// path = deduplicate(concat( reverse(offset(curve,r=ofs,closed=false)), +// xflip(offset(curve,r=ofs,closed=false)), // xflip(reverse(curve)), // curve // ));