diff --git a/src/polysections.scad b/src/polysections.scad index 72043133..262d9ed7 100644 --- a/src/polysections.scad +++ b/src/polysections.scad @@ -15,12 +15,12 @@ module polysections(sections, triangles = "RADIAL") { module tri_sections(tri1, tri2) { polyhedron( points = concat(tri1, tri2), - faces = concat( - [[0, 1, 2]], - [[3, 4, 5]], - [for(i = [0:2]) [i, (i + 1) % 3, (i + 1) % 3 + 3]], - [for(i = [0:2]) [i, i % 3 + 3, (i + 1) % 3 + 3]] - ) + faces = [ + [0, 1, 2], + [3, 4, 5], + [0, 1, 4], [1, 2, 5], [2, 0, 3], + [0, 3, 4], [1, 4, 5], [2, 5, 3] + ] ); }