mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-09 06:45:25 -06:00
XS interface completed, including new Line class
This commit is contained in:
parent
9af2a1c007
commit
ab6b3d41a7
33 changed files with 435 additions and 257 deletions
|
@ -8,11 +8,11 @@
|
|||
%name{Slic3r::ExtrusionPath} class ExtrusionPath {
|
||||
~ExtrusionPath();
|
||||
SV* arrayref()
|
||||
%code{% RETVAL = THIS->polyline.to_SV(true, false); %};
|
||||
SV* arrayref_pp()
|
||||
%code{% RETVAL = THIS->polyline.to_SV(true, true); %};
|
||||
%code{% RETVAL = THIS->polyline.to_SV(); %};
|
||||
SV* pp()
|
||||
%code{% RETVAL = THIS->polyline.to_SV_pureperl(); %};
|
||||
Polyline* as_polyline()
|
||||
%code{% const char* CLASS = "Slic3r::Polyline::XS"; RETVAL = new Polyline(THIS->polyline); %};
|
||||
%code{% const char* CLASS = "Slic3r::Polyline"; RETVAL = new Polyline(THIS->polyline); %};
|
||||
void set_polyline(SV* polyline_sv)
|
||||
%code{% THIS->polyline.from_SV_check(polyline_sv); %};
|
||||
void pop_back()
|
||||
|
@ -71,7 +71,7 @@ ExtrusionPath::append(...)
|
|||
CODE:
|
||||
for (unsigned int i = 1; i < items; i++) {
|
||||
Point p;
|
||||
perl2point_check(ST(i), p);
|
||||
p.from_SV_check(ST(i));
|
||||
THIS->polyline.points.push_back(p);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue