1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-17 12:10:47 +02:00
This commit is contained in:
Justin Lin
2022-03-30 17:26:55 +08:00
parent 8e5255fdc9
commit 1188fe9bcc
2 changed files with 15 additions and 17 deletions

View File

@@ -15,9 +15,7 @@ function curve(t_step, points, tightness = 0) =
[
each [
for(i = [0:leng - 4])
let(
pts = _catmull_rom_spline_4pts(t_step, [for(j = [i:i + 3]) points[j]], tightness)
)
let(pts = _catmull_rom_spline_4pts(t_step, [for(j = [i:i + 3]) points[j]], tightness))
for(i = [0:len(pts) - 2]) pts[i]
],
points[leng - 2]