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

used fixed vector

This commit is contained in:
Justin Lin
2017-05-01 13:22:05 +08:00
parent 317c458527
commit ed8ab3e049

View File

@@ -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]
]
);
}