mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-13 18:24:28 +02:00
fixed missing parameter round_d
This commit is contained in:
@@ -36,13 +36,13 @@ function _corner_ctrl_pts(round_d, p1, p2, p3) =
|
|||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
function _bezier_corner(t_step, p1, p2, p3) =
|
function _bezier_corner(round_d, t_step, p1, p2, p3) =
|
||||||
bezier_curve(t_step, _corner_ctrl_pts(round_d, p1, p2, p3));
|
bezier_curve(t_step, _corner_ctrl_pts(round_d, p1, p2, p3));
|
||||||
|
|
||||||
function _recursive_bezier_smooth(pts, round_d, t_step, leng, i = 0) =
|
function _recursive_bezier_smooth(pts, round_d, t_step, leng, i = 0) =
|
||||||
i <= leng - 3 ?
|
i <= leng - 3 ?
|
||||||
concat(
|
concat(
|
||||||
_bezier_corner(t_step, pts[i], pts[i + 1], pts[i + 2]),
|
_bezier_corner(round_d, t_step, pts[i], pts[i + 1], pts[i + 2]),
|
||||||
_recursive_bezier_smooth(pts, round_d, t_step, leng, i + 1)
|
_recursive_bezier_smooth(pts, round_d, t_step, leng, i + 1)
|
||||||
)
|
)
|
||||||
: [];
|
: [];
|
||||||
|
Reference in New Issue
Block a user