From 042feb495183e48a10a885e91f5c2a69d90186e4 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sun, 27 Feb 2022 18:53:03 +0800 Subject: [PATCH] use [each lt, v] to replace concat(lt, [v]) --- src/along_with.scad | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/along_with.scad b/src/along_with.scad index 2c843810..f4867ef4 100644 --- a/src/along_with.scad +++ b/src/along_with.scad @@ -78,7 +78,7 @@ module along_with(points, angles, twist = 0, scale = 1.0, method = "AXIS_ANGLE") curr_matrix = rot_matrice[i], prev_matrix = matrice[len(matrice) - 1] ) - concat(matrice, [curr_matrix * prev_matrix]); + [each matrice, curr_matrix * prev_matrix]; // align modules @@ -123,10 +123,10 @@ module along_with(points, angles, twist = 0, scale = 1.0, method = "AXIS_ANGLE") end_i = children == 1 ? leng_points_minus_one : children - 1, angs = _euler_angle_path_angles(pts, end_i) ) - concat( - [[0, -angs[0][0], angs[0][1]]], - [for(a = angs) [0, -a[0], a[1]]] - ); + [ + [0, -angs[0][0], angs[0][1]], + each[for(a = angs) [0, -a[0], a[1]]] + ]; module euler_angle_align(i, angs) { translate(pts[i])