mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-25 07:31:20 +02:00
refactor
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
function _convex_center_p_sum(lt, leng, i = 0) =
|
|
||||||
i == leng ? [0, 0, 0] : lt[i] + _convex_center_p_sum(lt, leng, i + 1);
|
|
@@ -1,5 +1,3 @@
|
|||||||
use <experimental/_impl/_convex_center_p_impl.scad>;
|
use <experimental/sum.scad>;
|
||||||
|
|
||||||
function convex_center_p(points) =
|
function convex_center_p(points) = sum(points) / len(points);
|
||||||
let(leng = len(points))
|
|
||||||
_convex_center_p_sum(points, leng) / leng;
|
|
Reference in New Issue
Block a user