mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Commenting source of Polygon::centroid() algorithm
This commit is contained in:
parent
52b3c655ff
commit
5c35fa4539
1 changed files with 1 additions and 0 deletions
|
@ -153,6 +153,7 @@ void Polygon::triangulate_convex(Polygons* polygons) const
|
||||||
}
|
}
|
||||||
|
|
||||||
// center of mass
|
// center of mass
|
||||||
|
// source: https://en.wikipedia.org/wiki/Centroid
|
||||||
Point Polygon::centroid() const
|
Point Polygon::centroid() const
|
||||||
{
|
{
|
||||||
double area_sum = 0.;
|
double area_sum = 0.;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue