1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 01:34:12 +02:00
This commit is contained in:
Justin Lin
2022-04-14 16:01:39 +08:00
parent 42f4c7eafd
commit 00a0bf9749

View File

@@ -90,7 +90,7 @@ module along_with(points, angles, twist = 0, scale = 1.0, method = "AXIS_ANGLE")
module axis_angle_align_with_pts_rs(a, s) { module axis_angle_align_with_pts_rs(a, s) {
angleyz = __angy_angz(pts[0], pts[1]); angleyz = __angy_angz(pts[0], pts[1]);
rotate([0, -angleyz[0], angleyz[1]]) rotate([0, -angleyz[0], angleyz[1]])
rotate([0, 0, a - 90]) rotate(a - 90)
scale(s) scale(s)
children(0); children(0);
} }
@@ -122,7 +122,7 @@ module along_with(points, angles, twist = 0, scale = 1.0, method = "AXIS_ANGLE")
) )
[ [
[0, -angs[0][0], angs[0][1]], [0, -angs[0][0], angs[0][1]],
each[for(a = angs) [0, -a[0], a[1]]] each [for(a = angs) [0, -a[0], a[1]]]
]; ];
module euler_angle_align(i, angs, look_at) { module euler_angle_align(i, angs, look_at) {