1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 09:44:16 +02:00

fix scale error

This commit is contained in:
Justin Lin
2022-05-03 09:47:03 +08:00
parent 29105549ae
commit 19b4434c83

View File

@@ -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);
}