1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 04:20:27 +02:00

fix missing variable

This commit is contained in:
Justin Lin
2022-03-30 21:22:51 +08:00
parent 0e3a4d4ccd
commit 032db93442

View File

@@ -70,7 +70,11 @@ module sweep(sections, triangles = "SOLID") {
test_sweep_solid(v_pts, f_idxes, triangles);
} else {
first_idxes = [for(i = leng_pts_sect - 1; i >= 0; i = i - 1) i];
last_idxes = [each [leng_pts_sect * (leng_sects - 1):from + leng_pts_sect - 1]];
from = leng_pts_sect * (leng_sects - 1);
to = from + leng_pts_sect - 1;
last_idxes = [each [from:to]];
f_idxes = [first_idxes, each side_indexes(sects), last_idxes];
polyhedron(