mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-17 12:10:47 +02:00
refactor
This commit is contained in:
@@ -50,8 +50,9 @@ function _bezier_curve_point(t, points) =
|
|||||||
|
|
||||||
function bezier_curve(t_step, points) =
|
function bezier_curve(t_step, points) =
|
||||||
let(
|
let(
|
||||||
|
t_end = ceil(1 / t_step),
|
||||||
pts = concat([
|
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(t * t_step, points)
|
||||||
], [_bezier_curve_point(1, points)])
|
], [_bezier_curve_point(1, points)])
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user