From 6851464068fa02cc66e178ad430d4e2e49fc731c Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Tue, 21 May 2019 19:47:34 +0800 Subject: [PATCH] fix CCW bug --- src/path_scaling_sections.scad | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/path_scaling_sections.scad b/src/path_scaling_sections.scad index da67a2aa..7a903367 100644 --- a/src/path_scaling_sections.scad +++ b/src/path_scaling_sections.scad @@ -8,6 +8,8 @@ * **/ +include <__private__/__reverse.scad>; + function path_scaling_sections(shape_pts, edge_path) = let( start_point = edge_path[0], @@ -18,11 +20,11 @@ function path_scaling_sections(shape_pts, edge_path) = m_scaling([s, s, 1]) ] ) - [ + __reverse([ for(i = [0:len(edge_path) - 1]) [ for(p = shape_pts) let(scaled_p = scaling_matrice[i] * [p[0], p[1], edge_path[i][2], 1]) [scaled_p[0], scaled_p[1], scaled_p[2]] ] - ]; \ No newline at end of file + ]); \ No newline at end of file