mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-30 08:32:42 +00:00
Ported intersect_expolygons() and subtract_expolygons() to XS
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
void rotate(double angle, Point* center);
|
||||
int count()
|
||||
%code{% RETVAL = THIS->expolygons.size(); %};
|
||||
bool contains_point(Point* point);
|
||||
%{
|
||||
|
||||
ExPolygonCollection*
|
||||
|
||||
@@ -20,6 +20,10 @@
|
||||
%code{% const char* CLASS = "Slic3r::Point"; RETVAL = THIS->first_point(); %};
|
||||
Point* last_point()
|
||||
%code{% const char* CLASS = "Slic3r::Point"; RETVAL = THIS->last_point(); %};
|
||||
ExtrusionEntityCollection* intersect_expolygons(ExPolygonCollection* collection)
|
||||
%code{% const char* CLASS = "Slic3r::ExtrusionPath::Collection"; RETVAL = THIS->intersect_expolygons(collection); %};
|
||||
ExtrusionEntityCollection* subtract_expolygons(ExPolygonCollection* collection)
|
||||
%code{% const char* CLASS = "Slic3r::ExtrusionPath::Collection"; RETVAL = THIS->subtract_expolygons(collection); %};
|
||||
%{
|
||||
|
||||
ExtrusionPath*
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
%typemap{AV*};
|
||||
%typemap{Point*};
|
||||
%typemap{ExPolygon*};
|
||||
%typemap{ExPolygonCollection*};
|
||||
%typemap{Line*};
|
||||
%typemap{Polyline*};
|
||||
%typemap{Polygon*};
|
||||
|
||||
Reference in New Issue
Block a user