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:
@@ -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]
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user