Merge branch 'master' into lm_seam_painter_backend
This commit is contained in:
@@ -88,6 +88,14 @@ inline double total_length(const Polygons &polylines) {
|
||||
return total;
|
||||
}
|
||||
|
||||
inline double area(const Polygons &polys)
|
||||
{
|
||||
double s = 0.;
|
||||
for (auto &p : polys) s += p.area();
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
// Remove sticks (tentacles with zero area) from the polygon.
|
||||
extern bool remove_sticks(Polygon &poly);
|
||||
extern bool remove_sticks(Polygons &polys);
|
||||
|
||||
Reference in New Issue
Block a user