mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-11 09:14:29 +02:00
used let
This commit is contained in:
@@ -21,21 +21,22 @@ function bezier_coordinate(t, pn, n, i = 0) =
|
||||
bezier_coordinate(t, pn, n, i + 1));
|
||||
|
||||
function _bezier_point(t, points) =
|
||||
let(n = len(points) - 1)
|
||||
[
|
||||
bezier_coordinate(
|
||||
t,
|
||||
[points[0][0], points[1][0], points[2][0], points[3][0]],
|
||||
len(points) - 1
|
||||
n
|
||||
),
|
||||
bezier_coordinate(
|
||||
t,
|
||||
t,
|
||||
[points[0][1], points[1][1], points[2][1], points[3][1]],
|
||||
len(points) - 1
|
||||
n
|
||||
),
|
||||
bezier_coordinate(
|
||||
t,
|
||||
[points[0][2], points[1][2], points[2][2], points[3][2]],
|
||||
len(points) - 1
|
||||
n
|
||||
)
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user