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:
@@ -141,9 +141,9 @@ module along_with(points, angles, twist = 0, scale = 1.0, method = "AXIS_ANGLE")
|
|||||||
|
|
||||||
x_90 = [90, 0, 0];
|
x_90 = [90, 0, 0];
|
||||||
|
|
||||||
for(i = [0, 1]) {
|
#for(i = [0, 1]) {
|
||||||
translate(pts[i])
|
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)
|
rotate(x_90)
|
||||||
children(0);
|
children(0);
|
||||||
}
|
}
|
||||||
@@ -158,7 +158,7 @@ module along_with(points, angles, twist = 0, scale = 1.0, method = "AXIS_ANGLE")
|
|||||||
} else {
|
} else {
|
||||||
for(i = [1:min(leng_points, $children) - 2]) {
|
for(i = [1:min(leng_points, $children) - 2]) {
|
||||||
translate(pts[i + 1])
|
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)
|
rotate(x_90)
|
||||||
children(i + 1);
|
children(i + 1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user