1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-10-02 01:06:47 +02:00

fixed orientation problem

This commit is contained in:
Justin Lin
2017-05-16 20:51:02 +08:00
parent 11a07063da
commit 36d24a2726

View File

@@ -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(