mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Minor edition
This commit is contained in:
parent
80e6cf6316
commit
f54be54379
1 changed files with 0 additions and 2 deletions
|
@ -1854,8 +1854,6 @@ function centroid(poly) =
|
||||||
let(segment=select(poly,i,i+1))
|
let(segment=select(poly,i,i+1))
|
||||||
det2(segment)*sum(segment)
|
det2(segment)*sum(segment)
|
||||||
]) / 6 / polygon_area(poly,signed=true)
|
]) / 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) )
|
: let( plane = plane_from_points(poly, fast=true) )
|
||||||
assert( !is_undef(plane), "The polygon must be planar." )
|
assert( !is_undef(plane), "The polygon must be planar." )
|
||||||
let(
|
let(
|
||||||
|
|
Loading…
Reference in a new issue