1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-13 10:14:41 +02:00

use [each lt, v] to replace concat(lt, [v])

This commit is contained in:
Justin Lin
2022-02-28 11:22:58 +08:00
parent 9a143a9f72
commit e04381bdea
10 changed files with 36 additions and 40 deletions

View File

@@ -7,11 +7,7 @@ diameter = 0.3;
corner_r = 0.5;
lines = hilbert_curve();
hilbert_path = dedup(
concat(
[for(line = lines) line[0]],
[lines[len(lines) - 1][1]])
);
hilbert_path = dedup([each [for(line = lines) line[0]], lines[len(lines) - 1][1]]);
smoothed_hilbert_path = bezier_smooth(hilbert_path, corner_r);
polyline_join(smoothed_hilbert_path)