From 7c0303256455587292369747d5e887d1e70ec172 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sun, 1 Mar 2020 18:26:32 +0800 Subject: [PATCH] refactor --- src/experimental/loft.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/experimental/loft.scad b/src/experimental/loft.scad index 82bb3c2b..647c32ab 100644 --- a/src/experimental/loft.scad +++ b/src/experimental/loft.scad @@ -29,7 +29,7 @@ module loft(sections, slices = 1) { function interpolate(sect, n) = n <= 1 ? sect : _interpolate(sect, len(sect), n); - module _loft(sect1, sect2) { + module _loft(sect1, sect2, slices) { function inter_sects(s1, s2, s_leng, slices) = slices == 1 ? [] : let( @@ -54,6 +54,6 @@ module loft(sections, slices = 1) { } for(i = [0:len(sections) - 2]) { - _loft(sections[i], sections[i + 1]); + _loft(sections[i], sections[i + 1], slices); } } \ No newline at end of file