mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-21 07:41:09 -06:00
Use Slic3r::ExPolygon::Collection for Layer->slices
This commit is contained in:
parent
7534c1e6d9
commit
13e3a9129c
4 changed files with 21 additions and 4 deletions
|
@ -9,6 +9,8 @@
|
|||
~ExPolygonCollection();
|
||||
ExPolygonCollection* clone()
|
||||
%code{% const char* CLASS = "Slic3r::ExPolygon::Collection"; RETVAL = new ExPolygonCollection(*THIS); %};
|
||||
void clear()
|
||||
%code{% THIS->expolygons.clear(); %};
|
||||
void scale(double factor);
|
||||
void translate(double x, double y);
|
||||
void rotate(double angle, Point* center);
|
||||
|
@ -45,5 +47,12 @@ ExPolygonCollection::arrayref()
|
|||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
void
|
||||
ExPolygonCollection::append(...)
|
||||
CODE:
|
||||
for (unsigned int i = 1; i < items; i++) {
|
||||
THIS->expolygons.push_back(*(ExPolygon *)SvIV((SV*)SvRV( ST(i) )));
|
||||
}
|
||||
|
||||
%}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue