From 7441f0f38130d1da00f1d7b770ee34cdc75fbaa9 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Tue, 9 May 2017 14:51:09 +0800 Subject: [PATCH] added triangles_tape --- src/__private__/__triangles_tape.scad | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/__private__/__triangles_tape.scad diff --git a/src/__private__/__triangles_tape.scad b/src/__private__/__triangles_tape.scad new file mode 100644 index 00000000..056013b7 --- /dev/null +++ b/src/__private__/__triangles_tape.scad @@ -0,0 +1,11 @@ +function __triangles_tape(leng_pts) = + concat( + [ + for(i = [0:leng_pts / 2 - 2]) + [i, leng_pts - i - 1, leng_pts - i - 2] + ], + [ + for(i = [0:leng_pts / 2 - 2]) + [i, i + 1, leng_pts - i - 2] + ] + ); \ No newline at end of file