mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-03-14 11:49:45 +01:00
Revert "correction of centroid"
This reverts commit 575db80056e46c71cc94d29d6fc99976ff6e7ef0.
This commit is contained in:
parent
575db80056
commit
407c36a8ae
@ -1913,8 +1913,7 @@ function centroid(poly, eps=EPSILON) =
|
||||
assert( is_finite(eps) && (eps>=0), "The tolerance should be a non-negative value." )
|
||||
let(
|
||||
n = len(poly[0])==2 ? 1 :
|
||||
let(
|
||||
plane = plane_from_points(poly, fast=true) )
|
||||
let( plane = plane_from_points(poly, fast=true) )
|
||||
assert( !is_undef(plane), "The polygon must be planar." )
|
||||
plane_normal(plane),
|
||||
v0 = poly[0] ,
|
||||
|
Loading…
x
Reference in New Issue
Block a user