Ported remove_collinear(Polygon) and test_polygon from upstream slic3r.

This commit is contained in:
bubnikv 2019-10-15 18:08:32 +02:00
parent de45be5f29
commit abe856f9fe
5 changed files with 90 additions and 2 deletions

View file

@ -86,6 +86,8 @@ extern bool remove_sticks(Polygons &polys);
// Remove polygons with less than 3 edges.
extern bool remove_degenerate(Polygons &polys);
extern bool remove_small(Polygons &polys, double min_area);
extern void remove_collinear(Polygon &poly);
extern void remove_collinear(Polygons &polys);
// Append a vector of polygons at the end of another vector of polygons.
inline void polygons_append(Polygons &dst, const Polygons &src) { dst.insert(dst.end(), src.begin(), src.end()); }