From 8714f140ec9e75dea8ca1dad95f31076d9528648 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Fri, 9 Jun 2017 10:12:05 +0800 Subject: [PATCH] changed index --- src/polysections.scad | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/polysections.scad b/src/polysections.scad index 6c94603f..e2c82f6b 100644 --- a/src/polysections.scad +++ b/src/polysections.scad @@ -184,16 +184,15 @@ module polysections(sections, triangles = "SOLID") { faces = [ [0, 1, 2], [3, 5, 4], - [0, 4, 1], [1, 5, 2], [2, 3, 0], - [0, 3, 4], [1, 4, 5], [2, 5, 3] + [1, 3, 4], [2, 1, 4], [2, 3, 0], + [0, 3, 1], [2, 4, 5], [2, 5, 3] ] ); } module two_sections(section1, section2) { for(idx = triangles) { - // hull is for preventing from WARNING: Object may not be a valid 2-manifold - hull() tri_sections( + tri_sections( [ section1[idx[0]], section1[idx[1]],