2013-07-14 02:38:01 +04:00
|
|
|
#ifndef slic3r_ExPolygonCollection_hpp_
|
|
|
|
#define slic3r_ExPolygonCollection_hpp_
|
|
|
|
|
2013-07-16 23:04:14 +04:00
|
|
|
#include <myinit.h>
|
2013-07-14 02:38:01 +04:00
|
|
|
#include "ExPolygon.hpp"
|
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
|
|
|
|
class ExPolygonCollection
|
|
|
|
{
|
|
|
|
public:
|
2013-08-08 04:10:34 +04:00
|
|
|
ExPolygons expolygons;
|
2013-11-21 20:53:50 +04:00
|
|
|
operator Polygons() const;
|
2013-07-14 02:38:01 +04:00
|
|
|
void scale(double factor);
|
|
|
|
void translate(double x, double y);
|
2014-04-24 15:43:24 +04:00
|
|
|
void rotate(double angle, const Point ¢er);
|
2014-04-24 18:40:10 +04:00
|
|
|
bool contains_point(const Point &point) const;
|
2013-11-21 23:25:24 +04:00
|
|
|
void simplify(double tolerance);
|
2013-12-12 23:19:33 +04:00
|
|
|
void convex_hull(Polygon* hull) const;
|
2013-07-14 02:38:01 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|