diff options
Diffstat (limited to 'xs/xsp/Polyline.xsp')
-rw-r--r-- | xs/xsp/Polyline.xsp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xs/xsp/Polyline.xsp b/xs/xsp/Polyline.xsp index 98cd44e94..31bd4045e 100644 --- a/xs/xsp/Polyline.xsp +++ b/xs/xsp/Polyline.xsp @@ -1,7 +1,7 @@ %module{Slic3r::XS}; %{ -#include <myinit.h> +#include <xsinit.h> #include "libslic3r/BoundingBox.hpp" #include "libslic3r/ClipperUtils.hpp" #include "libslic3r/Polyline.hpp" @@ -12,9 +12,9 @@ Clone<Polyline> clone() %code{% RETVAL = THIS; %}; SV* arrayref() - %code{% RETVAL = THIS->to_AV(); %}; + %code{% RETVAL = to_AV(THIS); %}; SV* pp() - %code{% RETVAL = THIS->to_SV_pureperl(); %}; + %code{% RETVAL = to_SV_pureperl(THIS); %}; void scale(double factor); void translate(double x, double y); void pop_back() @@ -48,7 +48,7 @@ Polyline::new(...) // ST(0) is class name, ST(1) is first point RETVAL->points.resize(items-1); for (unsigned int i = 1; i < items; i++) { - RETVAL->points[i-1].from_SV_check( ST(i) ); + from_SV_check(ST(i), &RETVAL->points[i-1]); } OUTPUT: RETVAL @@ -58,7 +58,7 @@ Polyline::append(...) CODE: for (unsigned int i = 1; i < items; i++) { Point p; - p.from_SV_check( ST(i) ); + from_SV_check(ST(i), &p); THIS->points.push_back(p); } @@ -76,7 +76,7 @@ Polyline::rotate(angle, center_sv) SV* center_sv; CODE: Point center; - center.from_SV_check(center_sv); + from_SV_check(center_sv, ¢er); THIS->rotate(angle, center); Polygons |