Incomplete work for porting simplify() to XS

This commit is contained in:
Alessandro Ranellucci 2013-11-21 20:25:24 +01:00
parent 7475762a27
commit 518798beb3
24 changed files with 121 additions and 41 deletions

View file

@ -17,6 +17,7 @@
int count()
%code{% RETVAL = THIS->expolygons.size(); %};
bool contains_point(Point* point);
void simplify(double tolerance);
%{
ExPolygonCollection*

View file

@ -25,6 +25,7 @@
ExtrusionEntityCollection* subtract_expolygons(ExPolygonCollection* collection)
%code{% const char* CLASS = "Slic3r::ExtrusionPath::Collection"; RETVAL = THIS->subtract_expolygons(collection); %};
void clip_end(double distance);
void simplify(double tolerance);
double length();
bool is_perimeter();
bool is_fill();

View file

@ -34,6 +34,7 @@
Point* first_point()
%code{% const char* CLASS = "Slic3r::Point"; RETVAL = THIS->first_point(); %};
bool contains_point(Point* point);
void simplify(double tolerance);
%{
Polygon*

View file

@ -29,6 +29,7 @@
bool is_valid();
void clip_end(double distance);
void clip_start(double distance);
void simplify(double tolerance);
%{
Polyline*