mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-06 14:56:47 +02:00
use [each lt, v] to replace concat(lt, [v])
This commit is contained in:
@@ -78,7 +78,7 @@ module along_with(points, angles, twist = 0, scale = 1.0, method = "AXIS_ANGLE")
|
|||||||
curr_matrix = rot_matrice[i],
|
curr_matrix = rot_matrice[i],
|
||||||
prev_matrix = matrice[len(matrice) - 1]
|
prev_matrix = matrice[len(matrice) - 1]
|
||||||
)
|
)
|
||||||
concat(matrice, [curr_matrix * prev_matrix]);
|
[each matrice, curr_matrix * prev_matrix];
|
||||||
|
|
||||||
// align modules
|
// 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,
|
end_i = children == 1 ? leng_points_minus_one : children - 1,
|
||||||
angs = _euler_angle_path_angles(pts, end_i)
|
angs = _euler_angle_path_angles(pts, end_i)
|
||||||
)
|
)
|
||||||
concat(
|
[
|
||||||
[[0, -angs[0][0], angs[0][1]]],
|
[0, -angs[0][0], angs[0][1]],
|
||||||
[for(a = angs) [0, -a[0], a[1]]]
|
each[for(a = angs) [0, -a[0], a[1]]]
|
||||||
);
|
];
|
||||||
|
|
||||||
module euler_angle_align(i, angs) {
|
module euler_angle_align(i, angs) {
|
||||||
translate(pts[i])
|
translate(pts[i])
|
||||||
|
Reference in New Issue
Block a user