mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-14 02:34:12 +02:00
support depth
This commit is contained in:
@@ -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)];
|
Reference in New Issue
Block a user