From ef5d5a15be66f80b1346e8b95f0e91d604cd713d Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Sun, 19 Apr 2020 14:17:37 -0700 Subject: [PATCH] Bugfix for spiral_sweep(). polyline needed to be converted to 3D. --- paths.scad | 1 + version.scad | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/paths.scad b/paths.scad index 382e6479..cee05813 100644 --- a/paths.scad +++ b/paths.scad @@ -781,6 +781,7 @@ module extrude_from_to(pt1, pt2, convexity=undef, twist=undef, scale=undef, slic // poly = [[-10,0], [-3,-5], [3,-5], [10,0], [0,-30]]; // spiral_sweep(poly, h=200, r=50, twist=1080, $fn=36); module spiral_sweep(polyline, h, r, twist=360, center, anchor, spin=0, orient=UP) { + polyline = path3d(polyline); pline_count = len(polyline); steps = ceil(segs(r)*(twist/360)); anchor = get_anchor(anchor,center,BOT,BOT); diff --git a/version.scad b/version.scad index eb4bd53c..332bbeb2 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,271]; +BOSL_VERSION = [2,0,272]; // Section: BOSL Library Version Functions