mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
new feature: Clip multi-part objects one by the other.
This works the same way as if the XY compensation was set to a tiny value before, but without the overhead of an offset.
This commit is contained in:
parent
ce8973b33a
commit
420e387055
7 changed files with 50 additions and 41 deletions
|
@ -107,6 +107,16 @@ inline ExPolygons to_expolygons(const Surfaces &src)
|
|||
return expolygons;
|
||||
}
|
||||
|
||||
inline ExPolygons to_expolygons(Surfaces &&src)
|
||||
{
|
||||
ExPolygons expolygons;
|
||||
expolygons.reserve(src.size());
|
||||
for (Surfaces::const_iterator it = src.begin(); it != src.end(); ++it)
|
||||
expolygons.emplace_back(ExPolygon(std::move(it->expolygon)));
|
||||
src.clear();
|
||||
return expolygons;
|
||||
}
|
||||
|
||||
inline ExPolygons to_expolygons(const SurfacesPtr &src)
|
||||
{
|
||||
ExPolygons expolygons;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue