1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-02-24 09:33:26 +01:00

avoid name collision

This commit is contained in:
Justin Lin 2020-02-25 08:07:26 +08:00
parent 2a8ed85596
commit 76cdc85635
2 changed files with 3 additions and 3 deletions

View File

@ -1,2 +1,2 @@
function _sum(lt, leng, i = 0) =
i == leng ? [0, 0, 0] : lt[i] + _sum(lt, leng, i + 1);
function _convex_center_p_sum(lt, leng, i = 0) =
i == leng ? [0, 0, 0] : lt[i] + _convex_center_p_sum(lt, leng, i + 1);

View File

@ -2,4 +2,4 @@ use <experimental/_impl/_convex_center_p_impl.scad>;
function convex_center_p(points) =
let(leng = len(points))
_sum(points, leng) / leng;
_convex_center_p_sum(points, leng) / leng;