1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 04:20:27 +02:00

refactored

This commit is contained in:
Justin Lin
2017-05-24 13:06:38 +08:00
parent 6e0dac3814
commit ef67883350

View File

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