diff --git a/xs/src/libslic3r/ExPolygon.hpp b/xs/src/libslic3r/ExPolygon.hpp index 7d1a609ea..589649fa0 100644 --- a/xs/src/libslic3r/ExPolygon.hpp +++ b/xs/src/libslic3r/ExPolygon.hpp @@ -13,9 +13,14 @@ typedef std::vector ExPolygons; class ExPolygon { - public: +public: + ExPolygon() {} + ExPolygon(const ExPolygon &other) : contour(other.contour), holes(other.holes) {} + ExPolygon(ExPolygon &&other) : contour(std::move(other.contour)), holes(std::move(other.holes)) {} + Polygon contour; Polygons holes; + operator Points() const; operator Polygons() const; operator Polylines() const;