Fixed regression causing random failures in bridge direction detection. #2636

This commit is contained in:
Alessandro Ranellucci 2015-02-27 21:55:02 +01:00
parent bb3feedc31
commit 1ab8efba7f
3 changed files with 15 additions and 8 deletions

View file

@ -112,6 +112,16 @@ ExPolygonCollection::lines() const
return lines;
}
Polygons
ExPolygonCollection::contours() const
{
Polygons contours;
for (ExPolygons::const_iterator it = this->expolygons.begin(); it != this->expolygons.end(); ++it) {
contours.push_back(it->contour);
}
return contours;
}
#ifdef SLIC3RXS
REGISTER_CLASS(ExPolygonCollection, "ExPolygon::Collection");
#endif