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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user