1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-29 20:08:21 +01:00
This commit is contained in:
Justin Lin 2022-03-05 11:11:34 +08:00
parent fe71af113f
commit f16de19a00

View File

@ -8,11 +8,8 @@ use <../util/sum.scad>;
ascending = function(e1, e2) e1 - e2;
function connected_faces(leng_pts, faces) =
let(
leng = len(faces),
cnt_faces = [for(i = [0:leng_pts - 1]) []]
)
_connected_faces(faces, leng, leng_pts, cnt_faces);
let(cnt_faces = [for(i = [0:leng_pts - 1]) []])
_connected_faces(faces, len(faces), leng_pts, cnt_faces);
function _connected_faces(faces, leng, leng_pts, cnt_faces, i = 0) =
i == leng ? cnt_faces :