Files
OrcaSlicer-bambulab/xs/src/ExPolygon.hpp
T

29 lines
501 B
C++
Raw Normal View History

2013-07-06 16:33:49 +02:00
#ifndef slic3r_ExPolygon_hpp_
#define slic3r_ExPolygon_hpp_
2013-07-14 15:53:53 +02:00
#include "Polygon.hpp"
2013-07-15 20:31:43 +02:00
#include <vector>
2013-07-06 16:33:49 +02:00
namespace Slic3r {
2013-07-06 16:33:49 +02:00
class ExPolygon
{
public:
Polygon contour;
Polygons holes;
void from_SV(SV* poly_sv);
void from_SV_check(SV* poly_sv);
SV* to_SV();
2013-07-16 20:09:53 +02:00
SV* to_SV_ref();
SV* to_SV_pureperl();
2013-07-11 14:08:11 +02:00
void scale(double factor);
2013-07-11 14:13:30 +02:00
void translate(double x, double y);
void rotate(double angle, Point* center);
2013-07-06 16:33:49 +02:00
};
2013-07-14 15:53:53 +02:00
typedef std::vector<ExPolygon> ExPolygons;
2013-07-11 18:55:51 +02:00
}
2013-07-06 16:33:49 +02:00
#endif