Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xs/xsp/ExPolygonCollection.xsp')
-rw-r--r--xs/xsp/ExPolygonCollection.xsp8
1 files changed, 4 insertions, 4 deletions
diff --git a/xs/xsp/ExPolygonCollection.xsp b/xs/xsp/ExPolygonCollection.xsp
index 99ef69608..e04d24e12 100644
--- a/xs/xsp/ExPolygonCollection.xsp
+++ b/xs/xsp/ExPolygonCollection.xsp
@@ -1,7 +1,7 @@
%module{Slic3r::XS};
%{
-#include <myinit.h>
+#include <xsinit.h>
#include "libslic3r/ExPolygonCollection.hpp"
%}
@@ -37,7 +37,7 @@ ExPolygonCollection::new(...)
RETVAL->expolygons.resize(items-1);
for (unsigned int i = 1; i < items; i++) {
// Note: a COPY of the input is stored
- RETVAL->expolygons[i-1].from_SV_check(ST(i));
+ from_SV_check(ST(i), &RETVAL->expolygons[i-1]);
}
OUTPUT:
RETVAL
@@ -62,7 +62,7 @@ ExPolygonCollection::pp()
av_fill(av, THIS->expolygons.size()-1);
int i = 0;
for (ExPolygons::iterator it = THIS->expolygons.begin(); it != THIS->expolygons.end(); ++it) {
- av_store(av, i++, (*it).to_SV_pureperl());
+ av_store(av, i++, to_SV_pureperl(&*it));
}
RETVAL = newRV_noinc((SV*)av);
OUTPUT:
@@ -73,7 +73,7 @@ ExPolygonCollection::append(...)
CODE:
for (unsigned int i = 1; i < items; i++) {
ExPolygon expolygon;
- expolygon.from_SV_check( ST(i) );
+ from_SV_check(ST(i), &expolygon);
THIS->expolygons.push_back(expolygon);
}