Files
OrcaSlicer-bambulab/xs/src/ExPolygon.hpp
Alessandro Ranellucci 706851f836 Ported ExPolygon->area()
2013-08-26 22:50:26 +02:00

30 lines
526 B
C++

#ifndef slic3r_ExPolygon_hpp_
#define slic3r_ExPolygon_hpp_
#include "Polygon.hpp"
#include <vector>
namespace Slic3r {
class ExPolygon
{
public:
Polygon contour;
Polygons holes;
void from_SV(SV* poly_sv);
void from_SV_check(SV* poly_sv);
SV* to_SV();
SV* to_SV_ref();
SV* to_SV_pureperl();
void scale(double factor);
void translate(double x, double y);
void rotate(double angle, Point* center);
double area() const;
};
typedef std::vector<ExPolygon> ExPolygons;
}
#endif