mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-19 13:01:37 +02:00
refactored
This commit is contained in:
@@ -171,18 +171,23 @@ module polysections(sections, triangles = "SOLID") {
|
|||||||
the_same_after_twisting(first_inner_sect, last_inner_sect, leng_pts_sect)
|
the_same_after_twisting(first_inner_sect, last_inner_sect, leng_pts_sect)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
v_pts = concat(outer_v_pts, inner_v_pts);
|
||||||
|
|
||||||
if(begin_end_the_same()) {
|
if(begin_end_the_same()) {
|
||||||
|
f_idxes = concat(outer_idxes, inner_idxes);
|
||||||
|
|
||||||
polyhedron(
|
polyhedron(
|
||||||
concat(outer_v_pts, inner_v_pts),
|
v_pts,
|
||||||
concat(outer_idxes, inner_idxes)
|
f_idxes
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
first_idxes = first_idxes();
|
first_idxes = first_idxes();
|
||||||
last_idxes = last_idxes(half_leng_v_pts - half_leng_sect);
|
last_idxes = last_idxes(half_leng_v_pts - half_leng_sect);
|
||||||
|
|
||||||
|
f_idxes = concat(first_idxes, outer_idxes, inner_idxes, last_idxes);
|
||||||
polyhedron(
|
polyhedron(
|
||||||
concat(outer_v_pts, inner_v_pts),
|
v_pts,
|
||||||
concat(first_idxes, outer_idxes, inner_idxes, last_idxes)
|
f_idxes
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user