1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-16 03:34:42 +02:00

changed index

This commit is contained in:
Justin Lin
2017-06-09 10:12:05 +08:00
parent 748a907799
commit 8714f140ec

View File

@@ -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]],