1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 09:44:16 +02: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) = function _glued2circles_lower_half_curve(curve_pts, leng) =
i < leng ? ( [
curve_pts[leng - 1 - i][0] >= 0 ? for(i = 0; i < leng; i = i + 1)
concat( let(p = curve_pts[leng - 1 - i])
[curve_pts[leng - 1 - i]], if(p[0] >= 0) p
_glued2circles_lower_half_curve(curve_pts, leng, i + 1) ];
) :
_glued2circles_lower_half_curve(curve_pts, leng, i + 1)
) : [];
function _glued2circles_half_glued_circle(radius, centre_dist, tangent_angle, t_step) = function _glued2circles_half_glued_circle(radius, centre_dist, tangent_angle, t_step) =
let( let(