From 19b4434c832c38ebe9635fa0b91d82cca5dd3dd1 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Tue, 3 May 2022 09:47:03 +0800 Subject: [PATCH] fix scale error --- src/along_with.scad | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/along_with.scad b/src/along_with.scad index bd2baa79..61309b6e 100644 --- a/src/along_with.scad +++ b/src/along_with.scad @@ -141,9 +141,9 @@ module along_with(points, angles, twist = 0, scale = 1.0, method = "AXIS_ANGLE") x_90 = [90, 0, 0]; - for(i = [0, 1]) { + #for(i = [0, 1]) { translate(pts[i]) - axis_angle_align_with_pts_rs(0, scale_one + scale_step_vt * (i + 1)) + axis_angle_align_with_pts_rs(0, scale_one + scale_step_vt * i) rotate(x_90) children(0); } @@ -158,7 +158,7 @@ module along_with(points, angles, twist = 0, scale = 1.0, method = "AXIS_ANGLE") } else { for(i = [1:min(leng_points, $children) - 2]) { translate(pts[i + 1]) - axis_angle_align_with_local_rotate(i, i * twist_step_a, scale_one + scale_step_vt * i, cumu_rot_matrice) + axis_angle_align_with_local_rotate(i, i * twist_step_a, scale_one + scale_step_vt * (i + 1), cumu_rot_matrice) rotate(x_90) children(i + 1); }