mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-08 15:56:42 +02:00
refactored
This commit is contained in:
@@ -80,9 +80,11 @@ module polysections(sections, triangles = "SOLID") {
|
|||||||
the_same_after_twisting(first_sect, last_sect, leng_pts_sect);
|
the_same_after_twisting(first_sect, last_sect, leng_pts_sect);
|
||||||
|
|
||||||
if(begin_end_the_same()) {
|
if(begin_end_the_same()) {
|
||||||
|
f_idxes = side_indexes(sects);
|
||||||
|
|
||||||
polyhedron(
|
polyhedron(
|
||||||
v_pts,
|
v_pts,
|
||||||
side_indexes(sects)
|
f_idxes
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
first_idxes = [for(i = [0:leng_pts_sect - 1]) leng_pts_sect - 1 - i];
|
first_idxes = [for(i = [0:leng_pts_sect - 1]) leng_pts_sect - 1 - i];
|
||||||
@@ -91,9 +93,10 @@ module polysections(sections, triangles = "SOLID") {
|
|||||||
i + leng_pts_sect * (leng_sects - 1)
|
i + leng_pts_sect * (leng_sects - 1)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
f_idxes = concat([first_idxes], side_indexes(sects), [last_idxes]);
|
||||||
polyhedron(
|
polyhedron(
|
||||||
v_pts,
|
v_pts,
|
||||||
concat([first_idxes], side_indexes(sects), [last_idxes])
|
f_idxes
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user