mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-29 03:47:45 +01:00
optimization
This commit is contained in:
parent
3519f834e6
commit
bcaf7fe67c
@ -10,17 +10,18 @@ module sf_cylinder(levels, radius, thickness, depth, invert = false, convexity =
|
||||
|
||||
sections = [
|
||||
for(z = [0:len(levels) - 1])
|
||||
let(level_z = levels[z], zz = -z + row_leng)
|
||||
concat(
|
||||
[for(xi = row_range)
|
||||
let(
|
||||
r = or + levels[z][xi] * d_scale,
|
||||
r = or + level_z[xi] * d_scale,
|
||||
a = xi * a_step
|
||||
)
|
||||
[r * cos(a), r * sin(a), -z + row_leng]
|
||||
[r * cos(a), r * sin(a), zz]
|
||||
],
|
||||
[for(xi = row_range)
|
||||
let(a = xi * a_step)
|
||||
[ir * cos(a), ir * sin(a), -z + row_leng]
|
||||
[ir * cos(a), ir * sin(a), zz]
|
||||
]
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user