From 598c08718753581008abbbc1c8cf81e91c0b66df Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Tue, 31 Mar 2020 08:06:31 +0800 Subject: [PATCH] add comment --- src/util/flat.scad | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/util/flat.scad b/src/util/flat.scad index f7af5b7d..eb8942a1 100644 --- a/src/util/flat.scad +++ b/src/util/flat.scad @@ -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)]; \ No newline at end of file