1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-29 17:30:11 +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

@@ -9,14 +9,14 @@ function one_body_scale(body_r, body_fn, scale_fn, scale_tilt_a) =
scale_r = PI * body_r / body_fn,
double_scale_r = scale_r * 2,
shape_scale = shape_circle(scale_r, $fn = scale_fn),
scale_pts = concat(
[[0, 0, scale_r / 2 + body_r]],
[
scale_pts = [
[0, 0, scale_r / 2 + body_r],
each [
for(p = shape_scale)
ptf_rotate([p[0], p[1] * 2.01, body_r], [scale_tilt_a, 0, 0])
],
[for(p = shape_scale) [p[0], p[1] * 2.01, 0]]
)
],
each [for(p = shape_scale) [p[0], p[1] * 2.01, 0]]
]
)
convex_hull3(scale_pts);