1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-10 08:44:20 +02:00

refactor: merge pts2 cond

This commit is contained in:
Justin Lin
2022-04-16 17:08:27 +08:00
parent a56f451b26
commit 64515eec03

View File

@@ -19,9 +19,10 @@ function _fast_fibonacci(nth) =
_fast_fibonacci_2_elems(nth)[0]; _fast_fibonacci_2_elems(nth)[0];
function _remove_same_pts(pts1, pts2) = function _remove_same_pts(pts1, pts2) =
pts1[len(pts1) - 1] == pts2[0] ? concat(
concat(pts1, [for(i = 1; i < len(pts2); i = i + 1) pts2[i]]) : pts1,
concat(pts1, pts2); pts1[len(pts1) - 1] == pts2[0] ? [for(i = [1:len(pts2) - 1]) pts2[i]] : pts2
);
function _golden_spiral_from_ls_or_eql_to(from, to, point_distance, rt_dir) = function _golden_spiral_from_ls_or_eql_to(from, to, point_distance, rt_dir) =
let( let(