diff options
Diffstat (limited to 'xs/xsp/Polygon.xsp')
-rw-r--r-- | xs/xsp/Polygon.xsp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xs/xsp/Polygon.xsp b/xs/xsp/Polygon.xsp index 824a65310..ec97aabcf 100644 --- a/xs/xsp/Polygon.xsp +++ b/xs/xsp/Polygon.xsp @@ -1,7 +1,7 @@ %module{Slic3r::XS}; %{ -#include <myinit.h> +#include <xsinit.h> #include "libslic3r/BoundingBox.hpp" #include "libslic3r/Polygon.hpp" #include "libslic3r/BoundingBox.hpp" @@ -12,9 +12,9 @@ Clone<Polygon> 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 reverse(); @@ -51,7 +51,7 @@ Polygon::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 @@ -62,7 +62,7 @@ Polygon::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); %} |