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

add comment

This commit is contained in:
Justin Lin
2020-03-31 08:06:31 +08:00
parent dfecb55736
commit 598c087187

View File

@@ -1,3 +1,13 @@
/**
* flat.scad
*
* @copyright Justin Lin, 2020
* @license https://opensource.org/licenses/lgpl-3.0.html
*
* @see https://openhome.cc/eGossip/OpenSCAD/lib2x-flat.html
*
**/
function flat(lt, depth = 1) =
depth == 1 ? [for(row = lt) each row] :
[for(row = lt) each flat(row, depth - 1)];