mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
Move semantics for the ExPolygon constructor.
This commit is contained in:
@@ -13,9 +13,14 @@ typedef std::vector<ExPolygon> 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;
|
||||
|
||||
Reference in New Issue
Block a user