Files
OrcaSlicer-bambulab/xs/src/SurfaceCollection.cpp
T

22 lines
535 B
C++
Raw Normal View History

2013-11-22 02:16:10 +01:00
#include "SurfaceCollection.hpp"
namespace Slic3r {
void
SurfaceCollection::simplify(double tolerance)
2013-11-22 02:16:10 +01:00
{
Surfaces ss;
for (Surfaces::const_iterator it_s = this->surfaces.begin(); it_s != this->surfaces.end(); ++it_s) {
ExPolygons expp;
it_s->expolygon.simplify(tolerance, expp);
for (ExPolygons::const_iterator it_e = expp.begin(); it_e != expp.end(); ++it_e) {
Surface s = *it_s;
s.expolygon = *it_e;
ss.push_back(s);
}
2013-11-22 02:16:10 +01:00
}
this->surfaces = ss;
2013-11-22 02:16:10 +01:00
}
}