mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-01 01:22:40 +00:00
Fixes and improvements to MotionPlanner, much smarter now
This commit is contained in:
@@ -160,17 +160,14 @@ ExPolygons
|
||||
ExPolygon::simplify(double tolerance) const
|
||||
{
|
||||
Polygons pp = this->simplify_p(tolerance);
|
||||
ExPolygons expp;
|
||||
union_(pp, &expp);
|
||||
return expp;
|
||||
return union_ex(pp);
|
||||
}
|
||||
|
||||
void
|
||||
ExPolygon::simplify(double tolerance, ExPolygons &expolygons) const
|
||||
ExPolygon::simplify(double tolerance, ExPolygons* expolygons) const
|
||||
{
|
||||
ExPolygons ep = this->simplify(tolerance);
|
||||
expolygons.reserve(expolygons.size() + ep.size());
|
||||
expolygons.insert(expolygons.end(), ep.begin(), ep.end());
|
||||
expolygons->insert(expolygons->end(), ep.begin(), ep.end());
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user