From 6d95a8bf9f027c43da926f355a792558e6205ee4 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Thu, 19 Sep 2019 17:44:15 +0800 Subject: [PATCH] refactor --- src/helix_extrude.scad | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/helix_extrude.scad b/src/helix_extrude.scad index e8a1efcc..1083ae18 100644 --- a/src/helix_extrude.scad +++ b/src/helix_extrude.scad @@ -44,7 +44,11 @@ module helix_extrude(shape_pts, radius, levels, level_dist, ); clk_a = r_dir == 1 ? 0 : 180; - angles = [for(i = 0; i < len(path_points); i = i + 1) [90 + initial_angle, 0, clk_a + angle_step * i]]; + ax = 90 + initial_angle; + angles = [ + for(i = 0; i < len(path_points); i = i + 1) + [ax, 0, clk_a + angle_step * i] + ]; sections = cross_sections(shape_pts, path_points, angles, twist, scale);