From 9d267992b6d904ba57812ec1d8eb6657ecba0a07 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Sun, 17 Dec 2023 20:13:49 -0800 Subject: [PATCH 1/2] Fix for #1329: wrong in cyl(), rotate_extrude() --- skin.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skin.scad b/skin.scad index e8b2bcd..d97e4c4 100644 --- a/skin.scad +++ b/skin.scad @@ -986,7 +986,7 @@ function rotate_sweep( style=style ) : let( - steps = ceil(segs(max_x) * angle / 360) + 1, + steps = ceil(segs(max_x) * angle / 360) + (angle<360? 1 : 0), skmat = down(min_y) * skew(sxz=shift.x/h, syz=shift.y/h) * up(min_y), transforms = [ if (angle==360) for (i=[0:1:steps-1]) skmat * rot([90,0,360-i*360/steps]), @@ -1046,7 +1046,7 @@ module rotate_sweep( spin=spin, orient=orient ) children(); } else { - steps = ceil(segs(max_x) * angle / 360) + 1; + steps = ceil(segs(max_x) * angle / 360) + (angle<360? 1 : 0); skmat = down(min_y) * skew(sxz=shift.x/h, syz=shift.y/h) * up(min_y); transforms = [ if (angle==360) for (i=[0:1:steps-1]) skmat * rot([90,0,360-i*360/steps]), From 555b3b6d90b6dc2f2b377716259056e79d35ae5e Mon Sep 17 00:00:00 2001 From: revarbat Date: Mon, 18 Dec 2023 07:24:06 +0000 Subject: [PATCH 2/2] Version Bump --- version.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.scad b/version.scad index dd037bd..3cf1c0f 100644 --- a/version.scad +++ b/version.scad @@ -9,7 +9,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,665]; +BOSL_VERSION = [2,0,666]; // Section: BOSL Library Version Functions