1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-02-24 09:33:26 +01:00
This commit is contained in:
Justin Lin 2019-06-16 16:44:01 +08:00
parent 2af270a8da
commit 61c6e9f70d

View File

@ -37,15 +37,12 @@ function _glued2circles_bezier(radius, centre_dist, tangent_angle, t_step, ctrl_
]
);
function _glued2circles_lower_half_curve(curve_pts, leng, i = 0) =
i < leng ? (
curve_pts[leng - 1 - i][0] >= 0 ?
concat(
[curve_pts[leng - 1 - i]],
_glued2circles_lower_half_curve(curve_pts, leng, i + 1)
) :
_glued2circles_lower_half_curve(curve_pts, leng, i + 1)
) : [];
function _glued2circles_lower_half_curve(curve_pts, leng) =
[
for(i = 0; i < leng; i = i + 1)
let(p = curve_pts[leng - 1 - i])
if(p[0] >= 0) p
];
function _glued2circles_half_glued_circle(radius, centre_dist, tangent_angle, t_step) =
let(