Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2011-09-26 21:53:01 +0400
committerAlessandro Ranellucci <aar@cpan.org>2011-09-26 21:53:01 +0400
commitb61b543243fdc67fbfb0726cda3faafbe77d57ea (patch)
tree2a0a90fba11af40832d1c126d00e65587d4bf878 /lib/Slic3r/Surface.pm
parent81085433fd0c70b9a2566dedd46a6bd8bf398ded (diff)
Minor cleanups
Diffstat (limited to 'lib/Slic3r/Surface.pm')
-rw-r--r--lib/Slic3r/Surface.pm15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/Slic3r/Surface.pm b/lib/Slic3r/Surface.pm
index 7e99f3f24..dcd96a0d5 100644
--- a/lib/Slic3r/Surface.pm
+++ b/lib/Slic3r/Surface.pm
@@ -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;