diff --git a/src/libslic3r/MultiPoint.hpp b/src/libslic3r/MultiPoint.hpp index d17142bb2..46b47832a 100644 --- a/src/libslic3r/MultiPoint.hpp +++ b/src/libslic3r/MultiPoint.hpp @@ -84,6 +84,13 @@ public: static Points _douglas_peucker(const Points &points, const double tolerance); static Points visivalingam(const Points& pts, const double& tolerance); + + inline auto begin() { return points.begin(); } + inline auto begin() const { return points.begin(); } + inline auto end() { return points.end(); } + inline auto end() const { return points.end(); } + inline auto cbegin() const { return points.begin(); } + inline auto cend() const { return points.end(); } }; class MultiPoint3 diff --git a/src/libslic3r/Polygon.hpp b/src/libslic3r/Polygon.hpp index 01d4d3dec..93cd70121 100644 --- a/src/libslic3r/Polygon.hpp +++ b/src/libslic3r/Polygon.hpp @@ -75,13 +75,6 @@ public: using iterator = Points::iterator; using const_iterator = Points::const_iterator; - - inline auto begin() { return points.begin(); } - inline auto begin() const { return points.begin(); } - inline auto end() { return points.end(); } - inline auto end() const { return points.end(); } - inline auto cbegin() const { return points.begin(); } - inline auto cend() const { return points.end(); } }; inline bool operator==(const Polygon &lhs, const Polygon &rhs) { return lhs.points == rhs.points; }