mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-05 21:47:39 +02:00
Bugfix for spiral_sweep(). polyline needed to be converted to 3D.
This commit is contained in:
@@ -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]];
|
// poly = [[-10,0], [-3,-5], [3,-5], [10,0], [0,-30]];
|
||||||
// spiral_sweep(poly, h=200, r=50, twist=1080, $fn=36);
|
// 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) {
|
module spiral_sweep(polyline, h, r, twist=360, center, anchor, spin=0, orient=UP) {
|
||||||
|
polyline = path3d(polyline);
|
||||||
pline_count = len(polyline);
|
pline_count = len(polyline);
|
||||||
steps = ceil(segs(r)*(twist/360));
|
steps = ceil(segs(r)*(twist/360));
|
||||||
anchor = get_anchor(anchor,center,BOT,BOT);
|
anchor = get_anchor(anchor,center,BOT,BOT);
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,271];
|
BOSL_VERSION = [2,0,272];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
Reference in New Issue
Block a user