mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-12 09:44:16 +02:00
refactor
This commit is contained in:
@@ -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(
|
||||||
|
Reference in New Issue
Block a user