mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-18 01:25:58 +08:00
added constructors for building ExPolygon from Points array and a pair of Points arrays (used in tests)
This commit is contained in:
parent
60bd9b4707
commit
88e03c0b2c
@ -20,6 +20,9 @@ class ExPolygon
|
|||||||
Polygons holes;
|
Polygons holes;
|
||||||
ExPolygon() {};
|
ExPolygon() {};
|
||||||
explicit ExPolygon(const Polygon &_contour) : contour(_contour) {};
|
explicit ExPolygon(const Polygon &_contour) : contour(_contour) {};
|
||||||
|
explicit ExPolygon(const Points &_contour) : contour(Polygon(_contour)) {};
|
||||||
|
/// Constructor to build a single holed
|
||||||
|
explicit ExPolygon(const Points &_contour, const Points &_hole) : contour(Polygon(_contour)), holes(Polygons(Polygon(_hole))) { };
|
||||||
operator Points() const;
|
operator Points() const;
|
||||||
operator Polygons() const;
|
operator Polygons() const;
|
||||||
void scale(double factor);
|
void scale(double factor);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user