1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-07 15:26:39 +02:00
This commit is contained in:
Justin Lin
2022-03-10 20:18:32 +08:00
parent 2f3bf9c309
commit 84c5ea2d91

View File

@@ -1,7 +1,7 @@
function __m_scaling_to_3_elems_scaling_vect(s) =
let(leng = len(s))
leng == 3 ? s :
leng == 2 ? [s[0], s[1], 1] : [s[0], 1, 1];
leng == 2 ? [each s, 1] : [s.x, 1, 1];
function __m_scaling_to_scaling_vect(s) = is_num(s) ? [s, s, s] : __m_scaling_to_3_elems_scaling_vect(s);