mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Merge branch 'master' into xsdata
Conflicts: xs/xsp/ExPolygon.xsp
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
%name{Slic3r::ExPolygon::XS} class ExPolygon {
|
||||
%name{_clone} ExPolygon(ExPolygon& self);
|
||||
~ExPolygon();
|
||||
%{
|
||||
|
||||
ExPolygon*
|
||||
@@ -14,9 +15,10 @@ ExPolygon::new(...)
|
||||
CODE:
|
||||
RETVAL = new ExPolygon ();
|
||||
// ST(0) is class name, ST(1) is contour and others are holes
|
||||
RETVAL->contour = *perl2polygon(ST(1));
|
||||
perl2polygon(ST(1), RETVAL->contour);
|
||||
RETVAL->holes.resize(items-2);
|
||||
for (unsigned int i = 2; i < items; i++) {
|
||||
RETVAL->holes.push_back(*perl2polygon(ST(i)));
|
||||
perl2polygon(ST(i), RETVAL->holes[i-2]);
|
||||
}
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
%name{Slic3r::Point::XS} class Point {
|
||||
Point(unsigned long _x = 0, unsigned long _y = 0);
|
||||
~Point();
|
||||
%{
|
||||
|
||||
SV*
|
||||
|
||||
Reference in New Issue
Block a user