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
2019-06-16 21:09:41 +08:00
parent 56d2fb648f
commit ed9477ece5

View File

@@ -19,19 +19,13 @@ module along_with(points, angles, twist = 0, scale = 1.0, method = "AXIS_ANGLE")
angles_defined = !is_undef(angles); angles_defined = !is_undef(angles);
scale_step_vt = is_num(scale) ? scale_step_vt = is_num(scale) ?
scale_step() : let(s = (scale - 1) / leng_points_minus_one) [s, s, s] :
[ [
(scale[0] - 1) / leng_points_minus_one, (scale[0] - 1) / leng_points_minus_one,
(scale[1] - 1) / leng_points_minus_one, (scale[1] - 1) / leng_points_minus_one,
is_undef(scale[2]) ? 0 : (scale[2] - 1) / leng_points_minus_one is_undef(scale[2]) ? 0 : (scale[2] - 1) / leng_points_minus_one
]; ];
function scale_step() =
let(s = (scale - 1) / leng_points_minus_one)
[s, s, s];
/* /*
Sadly, children(n) cannot be used with inner modules Sadly, children(n) cannot be used with inner modules
so I have to do things in the first level. Ugly!! so I have to do things in the first level. Ugly!!