mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-02 16:59:48 +02:00
Better polymorphism for ExPolygon::XS->rotate
This commit is contained in:
@@ -40,6 +40,14 @@ point2perl(Point& point) {
|
||||
return sv_bless(newRV_noinc((SV*)av), gv_stashpv("Slic3r::Point", GV_ADD));
|
||||
}
|
||||
|
||||
void
|
||||
perl2point(SV* point_sv, Point& point)
|
||||
{
|
||||
AV* point_av = (AV*)SvRV(point_sv);
|
||||
point.x = (unsigned long)SvIV(*av_fetch(point_av, 0, 0));
|
||||
point.y = (unsigned long)SvIV(*av_fetch(point_av, 1, 0));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user