mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-15 03:32:52 +02:00
Minor cleanups
This commit is contained in:
1 parent
81085433fd
commit
b61b543243
5 files changed
+2
-29
No files matched your search
@@ -28,21 +28,6 @@ sub add_hole {
|
||||
push @{ $self->holes }, $hole;
|
||||
}
|
||||
|
||||
sub new_from_mgp {
|
||||
my $self = shift;
|
||||
my ($polygon, %params) = @_;
|
||||
|
||||
my ($contour_p, @holes_p) = @{ $polygon->polygons };
|
||||
|
||||
return __PACKAGE__->new(
|
||||
contour => Slic3r::Polyline::Closed->cast($contour_p),
|
||||
holes => [
|
||||
map Slic3r::Polyline::Closed->cast($_), @holes_p
|
||||
],
|
||||
%params,
|
||||
);
|
||||
}
|
||||
|
||||
sub id {
|
||||
my $self = shift;
|
||||
return $self->contour->id;
|
||||
|
||||
Reference in new issue
Block a user