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