mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-21 05:19:13 -07:00
Implemented Slic3r::ExtrusionLoop
This commit is contained in:
@@ -29,6 +29,16 @@ perl2polygon(SV* poly_sv, Polygon& poly)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
perl2polygon_check(SV* poly_sv, Polygon& poly)
|
||||
{
|
||||
if (sv_isobject(poly_sv) && (SvTYPE(SvRV(poly_sv)) == SVt_PVMG)) {
|
||||
poly = *(Polygon*)SvIV((SV*)SvRV( poly_sv ));
|
||||
} else {
|
||||
perl2polygon(poly_sv, poly);
|
||||
}
|
||||
}
|
||||
|
||||
SV*
|
||||
polygon2perl(Polygon& poly) {
|
||||
const unsigned int num_points = poly.points.size();
|
||||
|
||||
@@ -68,6 +68,16 @@ perl2polyline(SV* poly_sv, Polyline& poly)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
perl2polyline_check(SV* poly_sv, Polyline& poly)
|
||||
{
|
||||
if (sv_isobject(poly_sv) && (SvTYPE(SvRV(poly_sv)) == SVt_PVMG)) {
|
||||
poly = *(Polyline*)SvIV((SV*)SvRV( poly_sv ));
|
||||
} else {
|
||||
perl2polyline(poly_sv, poly);
|
||||
}
|
||||
}
|
||||
|
||||
SV*
|
||||
polyline2perl(Polyline& poly) {
|
||||
const unsigned int num_points = poly.points.size();
|
||||
|
||||
Reference in New Issue
Block a user