From 36d24a272681ed800ab5f497fe2418ee40659bef Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Tue, 16 May 2017 20:51:02 +0800 Subject: [PATCH] fixed orientation problem --- src/sphere_spiral_extrude.scad | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sphere_spiral_extrude.scad b/src/sphere_spiral_extrude.scad index a43e53d9..10df4a32 100644 --- a/src/sphere_spiral_extrude.scad +++ b/src/sphere_spiral_extrude.scad @@ -24,8 +24,11 @@ module sphere_spiral_extrude(shape_pts, radius, za_step, rt_dir = rt_dir ); + v_clk = vt_dir == "SPI_DOWN" ? 90 : -90; + r_clk = rt_dir == "CT_CLK" ? 0 : 180; + points = [for(pa = points_angles) pa[0]]; - angles = [for(pa = points_angles) [pa[1][0] + 90, pa[1][1], pa[1][2]]]; + angles = [for(pa = points_angles) [pa[1][0] + v_clk, pa[1][1], pa[1][2] + r_clk]]; polysections( cross_sections(