mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 17:27:52 -06:00
Ported remove_collinear(Polygon) and test_polygon from upstream slic3r.
This commit is contained in:
parent
de45be5f29
commit
abe856f9fe
5 changed files with 90 additions and 2 deletions
|
@ -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()); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue