diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2015-01-06 22:52:36 +0300 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2015-01-06 22:52:36 +0300 |
commit | 8f4cbefd0dd71cd6ae8dc149bd2e349905cd1ee8 (patch) | |
tree | bc62ca8f84cf8cdc4824bc9cf72547cf70cba602 /xs/src/libslic3r/ExPolygonCollection.hpp | |
parent | 5e100abe2545ba5f61edce541c91b63aa3e14347 (diff) |
Lots of improvements to MotionPlanner/avoid_crossing_perimeters. Smoother paths and several edge cases now handled better
Diffstat (limited to 'xs/src/libslic3r/ExPolygonCollection.hpp')
-rw-r--r-- | xs/src/libslic3r/ExPolygonCollection.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xs/src/libslic3r/ExPolygonCollection.hpp b/xs/src/libslic3r/ExPolygonCollection.hpp index 6aa5b0a56..cca6064d5 100644 --- a/xs/src/libslic3r/ExPolygonCollection.hpp +++ b/xs/src/libslic3r/ExPolygonCollection.hpp @@ -17,6 +17,7 @@ class ExPolygonCollection ExPolygons expolygons; ExPolygonCollection() {}; + ExPolygonCollection(const ExPolygon &expolygon); ExPolygonCollection(const ExPolygons &expolygons) : expolygons(expolygons) {}; operator Points() const; operator Polygons() const; @@ -25,8 +26,10 @@ class ExPolygonCollection void translate(double x, double y); void rotate(double angle, const Point ¢er); template <class T> bool contains(const T &item) const; + bool contains_b(const Point &point) const; void simplify(double tolerance); void convex_hull(Polygon* hull) const; + Lines lines() const; }; } |