From 097c18b804073bd8fd67bdf00d4f2d5d7dc94e76 Mon Sep 17 00:00:00 2001 From: RonaldoCMP Date: Thu, 25 Mar 2021 08:36:43 +0000 Subject: [PATCH] Revert "Minor edition" This reverts commit f54be543797293c9dfba57ab4df4bd257ce6f0b9. --- geometry.scad | 2 ++ 1 file changed, 2 insertions(+) diff --git a/geometry.scad b/geometry.scad index 060b5cd..968a291 100644 --- a/geometry.scad +++ b/geometry.scad @@ -1854,6 +1854,8 @@ function centroid(poly) = let(segment=select(poly,i,i+1)) det2(segment)*sum(segment) ]) / 6 / polygon_area(poly,signed=true) +// polygon_area(concat([[0,0]],segment),signed=true)*sum(segment) +// ]) / 3 / polygon_area(poly,signed=true) : let( plane = plane_from_points(poly, fast=true) ) assert( !is_undef(plane), "The polygon must be planar." ) let(