mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-17 20:11:50 +02:00
changed index
This commit is contained in:
@@ -184,16 +184,15 @@ module polysections(sections, triangles = "SOLID") {
|
|||||||
faces = [
|
faces = [
|
||||||
[0, 1, 2],
|
[0, 1, 2],
|
||||||
[3, 5, 4],
|
[3, 5, 4],
|
||||||
[0, 4, 1], [1, 5, 2], [2, 3, 0],
|
[1, 3, 4], [2, 1, 4], [2, 3, 0],
|
||||||
[0, 3, 4], [1, 4, 5], [2, 5, 3]
|
[0, 3, 1], [2, 4, 5], [2, 5, 3]
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
module two_sections(section1, section2) {
|
module two_sections(section1, section2) {
|
||||||
for(idx = triangles) {
|
for(idx = triangles) {
|
||||||
// hull is for preventing from WARNING: Object may not be a valid 2-manifold
|
tri_sections(
|
||||||
hull() tri_sections(
|
|
||||||
[
|
[
|
||||||
section1[idx[0]],
|
section1[idx[0]],
|
||||||
section1[idx[1]],
|
section1[idx[1]],
|
||||||
|
Reference in New Issue
Block a user