1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00

conditional end_i

This commit is contained in:
Justin Lin 2022-06-19 09:38:00 +08:00
parent ad4b54984b
commit 2651a23524

View File

@ -97,7 +97,7 @@ module path_extrude(shape_pts, path_pts, triangles = "SOLID", twist = 0, scale =
let( let(
fst_section = translate_pts(init_section(0, one), pth_pts[0]), fst_section = translate_pts(init_section(0, one), pth_pts[0]),
snd_section = translate_pts(init_section(0, one + scale_step_vt), pth_pts[1]), snd_section = translate_pts(init_section(0, one + scale_step_vt), pth_pts[1]),
end_i = len_path_pts - 2, end_i = closed ? len_path_pts - 2 : len_path_pts - 1,
remain_sections = [ remain_sections = [
for(i = 1; i < end_i; i = i + 1) for(i = 1; i < end_i; i = i + 1)
translate_pts( translate_pts(