1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-14 02:34:12 +02:00

support depth

This commit is contained in:
Justin Lin
2020-03-31 07:27:53 +08:00
parent c62b4ef638
commit 3889d12262

View File

@@ -1 +1,3 @@
function flat(lt) = [for(row_pts = lt) each row_pts];
function flat(lt, depth = 1) =
depth == 1 ? [for(row = lt) each row] :
[for(row = lt) each flat(row, depth - 1)];