1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-17 20:11:50 +02:00
This commit is contained in:
Justin Lin
2019-09-21 08:19:29 +08:00
parent a3a0767ea3
commit 237232dc07

View File

@@ -50,8 +50,9 @@ function _bezier_curve_point(t, points) =
function bezier_curve(t_step, points) =
let(
t_end = ceil(1 / t_step),
pts = concat([
for(t = 0; t < ceil(1 / t_step); t = t + 1)
for(t = 0; t < t_end; t = t + 1)
_bezier_curve_point(t * t_step, points)
], [_bezier_curve_point(1, points)])
)