mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-28 15:45:30 +00:00
Fix destructors
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
%}
|
||||
|
||||
%name{Slic3r::ExPolygon::XS} class ExPolygon {
|
||||
~ExPolygon();
|
||||
%{
|
||||
|
||||
ExPolygon*
|
||||
@@ -13,9 +14,10 @@ ExPolygon::new(...)
|
||||
CODE:
|
||||
RETVAL = new ExPolygon ();
|
||||
// ST(0) is class name, ST(1) is contour and others are holes
|
||||
RETVAL->contour = *perl2polygon(ST(1));
|
||||
perl2polygon(ST(1), RETVAL->contour);
|
||||
RETVAL->holes.resize(items-2);
|
||||
for (unsigned int i = 2; i < items; i++) {
|
||||
RETVAL->holes.push_back(*perl2polygon(ST(i)));
|
||||
perl2polygon(ST(i), RETVAL->holes[i-2]);
|
||||
}
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
Reference in New Issue
Block a user