Port offset_ex() and offset2_ex() to XS

This commit is contained in:
Alessandro Ranellucci 2013-07-16 20:09:53 +02:00
parent 9458c7db97
commit 898007fc36
20 changed files with 4349 additions and 52 deletions

View file

@ -15,6 +15,7 @@ namespace Slic3r {
class Polygon : public MultiPoint {
public:
SV* to_SV_ref();
Lines lines();
Polyline* split_at_index(int index);
Polyline* split_at_first_point();
@ -22,6 +23,13 @@ class Polygon : public MultiPoint {
typedef std::vector<Polygon> Polygons;
SV*
Polygon::to_SV_ref() {
SV* sv = newSV(0);
sv_setref_pv( sv, "Slic3r::Polygon", new Polygon(*this) );
return sv;
}
Lines
Polygon::lines()
{