mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-11 22:32:55 +02:00
XS interface completed, including new Line class
This commit is contained in:
1 parent
9af2a1c007
commit
ab6b3d41a7
33 files changed
+435
-257
No files matched your search
@@ -179,8 +179,8 @@ sub traverse_pt {
|
||||
|
||||
sub _convert {
|
||||
my $polygons = shift;
|
||||
$polygons = $polygons->arrayref_pp if ref $polygons eq 'Slic3r::ExPolygon::XS';
|
||||
$polygons = [ map $_->arrayref_pp, @$polygons ] if @$polygons && ref $polygons->[0] eq 'Slic3r::Polygon';
|
||||
$polygons = $polygons->pp if ref $polygons eq 'Slic3r::ExPolygon::XS';
|
||||
$polygons = [ map $_->pp, @$polygons ] if @$polygons && ref $polygons->[0] eq 'Slic3r::Polygon';
|
||||
return $polygons;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user