1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-29 09:19:59 +02:00

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

This commit is contained in:
Justin Lin
2022-02-28 11:05:50 +08:00
parent c9370160a7
commit 8f76446bd8
9 changed files with 58 additions and 51 deletions

View File

@@ -36,6 +36,20 @@ module dragon_claw() {
rotate_extrude($fn = 7)
polygon(pts);
linear_extrude(5)
polygon(dedup(concat(claw_path1, claw_path2, claw_path3, claw_path4, [[-2, -.75], [-1.45, -1.45]], claw_path5, [[1.45, -1.45], [2, -.75]])));
polygon(
dedup(
[
each claw_path1,
each claw_path2,
each claw_path3,
each claw_path4,
[-2, -.75],
[-1.45, -1.45],
each claw_path5,
[1.45, -1.45],
[2, -.75]
]
)
);
}
}