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