1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-21 22:05:27 +02:00
This commit is contained in:
Justin Lin
2022-03-05 11:10:12 +08:00
parent ec276b274f
commit fe71af113f

View File

@@ -30,20 +30,13 @@ function _fst_v3(pts, leng, n, d, i) =
[i, nd]; [i, nd];
function m_assign(m, i, j, v) = function m_assign(m, i, j, v) =
let( let(lt = m[i])
lt = m[i],
leng_lt = len(lt),
nlt = [
if(j != 0) each [for(idx = [0:j - 1]) lt[idx]],
v,
if(j != leng_lt - 1) each [for(idx = [j + 1:leng_lt - 1]) lt[idx]]
],
leng_m = len(m)
)
[ [
if(i != 0) each [for(idx = [0:i - 1]) m[idx]],, for(r = [0:len(m) - 1])
nlt, if(r == i)
if(i != leng_m - 1) each [for(idx = [i + 1:leng_m - 1]) m[idx]] [for(c = [0:len(lt) - 1]) c == j ? v : lt[c]]
else
m[r]
]; ];
function next_vis(i, pts, cur_faces, cur_faces_leng, next, vis, j = 0) = function next_vis(i, pts, cur_faces, cur_faces_leng, next, vis, j = 0) =