mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
Commenting source of Polygon::centroid() algorithm
This commit is contained in:
@@ -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.;
|
||||||
|
|||||||
Reference in New Issue
Block a user