1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 17:54:18 +02:00

c-style for loop

This commit is contained in:
Justin Lin
2019-06-12 13:33:43 +08:00
parent 758b14715f
commit cec42209f2

View File

@@ -51,7 +51,7 @@ function _bezier_curve_point(t, points) =
function bezier_curve(t_step, points) =
let(
pts = concat([
for(t = [0: ceil(1 / t_step) - 1])
for(t = 0; t < ceil(1 / t_step); t = t + 1)
_bezier_curve_point(t * t_step, points)
], [_bezier_curve_point(1, points)])
)