mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 17:24:20 +02:00
extracted function
This commit is contained in:
@@ -55,6 +55,13 @@ module polysections(sections, triangles = "SOLID") {
|
||||
[for(i = [0:found_at_i - 1]) f_sect[i]]
|
||||
);
|
||||
|
||||
function to_v_pts(sects) =
|
||||
[
|
||||
for(sect = sects)
|
||||
for(pt = sect)
|
||||
pt
|
||||
];
|
||||
|
||||
module solid_sections(sects) {
|
||||
|
||||
leng_sects = len(sects);
|
||||
@@ -131,13 +138,6 @@ module polysections(sections, triangles = "SOLID") {
|
||||
outer_sects = strip_sects(0, half_leng_sect - 1);
|
||||
inner_sects = strip_sects(half_leng_sect, leng_sect - 1);
|
||||
|
||||
function to_v_pts(sects) =
|
||||
[
|
||||
for(sect = sects)
|
||||
for(pt = sect)
|
||||
pt
|
||||
];
|
||||
|
||||
outer_v_pts = to_v_pts(outer_sects);
|
||||
inner_v_pts = to_v_pts(inner_sects);
|
||||
|
||||
|
Reference in New Issue
Block a user