1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-07-31 20:10:36 +02:00

fixed "only-cubic Bézier curves" problem

This commit is contained in:
Justin Lin
2017-04-30 15:38:54 +08:00
parent a754b15d03
commit 75a8a1bf14

View File

@@ -35,17 +35,17 @@ function _bezier_curve_point(t, points) =
[
bezier_curve_coordinate(
t,
[points[0][0], points[1][0], points[2][0], points[3][0]],
[for(p = points) p[0]],
n
),
bezier_curve_coordinate(
t,
[points[0][1], points[1][1], points[2][1], points[3][1]],
[for(p = points) p[1]],
n
),
bezier_curve_coordinate(
t,
[points[0][2], points[1][2], points[2][2], points[3][2]],
[for(p = points) p[2]],
n
)
];