mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-05 16:51:07 -07:00
New ExPolygon::triangulate() method
This commit is contained in:
parent
bb0ce3cccd
commit
37c7b958d4
5 changed files with 26 additions and 3 deletions
|
|
@ -168,7 +168,9 @@ Polygon::triangulate_convex(Polygons* polygons) const
|
|||
p.points.push_back(this->points.front());
|
||||
p.points.push_back(*(it-1));
|
||||
p.points.push_back(*it);
|
||||
polygons->push_back(p);
|
||||
|
||||
// this should be replaced with a more efficient call to a merge_collinear_segments() method
|
||||
if (p.area() > 0) polygons->push_back(p);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue