Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2015-02-27 23:55:02 +0300
committerAlessandro Ranellucci <aar@cpan.org>2015-02-27 23:55:02 +0300
commit1ab8efba7fe54c44bdee6017316f78bd4405020e (patch)
tree4b016f76cfd53dca7721743ad1ded1e483500792 /xs/src/libslic3r/ExPolygonCollection.cpp
parentbb3feedc31a7057bbb47a3e4027f41e925d02ee5 (diff)
Fixed regression causing random failures in bridge direction detection. #2636
Diffstat (limited to 'xs/src/libslic3r/ExPolygonCollection.cpp')
-rw-r--r--xs/src/libslic3r/ExPolygonCollection.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/xs/src/libslic3r/ExPolygonCollection.cpp b/xs/src/libslic3r/ExPolygonCollection.cpp
index 3b47c29b3..9ae7e8907 100644
--- a/xs/src/libslic3r/ExPolygonCollection.cpp
+++ b/xs/src/libslic3r/ExPolygonCollection.cpp
@@ -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