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:
bubnikv 2017-02-14 12:36:04 +01:00
parent ce8973b33a
commit 420e387055
7 changed files with 50 additions and 41 deletions

View file

@ -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;