Move dump_perl() to Slic3r::Polyline

This commit is contained in:
Alessandro Ranellucci 2014-12-24 00:11:13 +01:00
parent d47e12f05c
commit c63d5da5c2
2 changed files with 5 additions and 5 deletions

View file

@ -7,11 +7,6 @@ use parent 'Slic3r::Polyline';
use Slic3r::Geometry qw(PI);
sub dump_perl {
my $self = shift;
return sprintf "[%s]", join ',', map "[$_->[0],$_->[1]]", @$self;
}
sub grow {
my $self = shift;
return $self->split_at_first_point->grow(@_);

View file

@ -10,4 +10,9 @@ sub new_scale {
return $class->new(map [ Slic3r::Geometry::scale($_->[X]), Slic3r::Geometry::scale($_->[Y]) ], @points);
}
sub dump_perl {
my $self = shift;
return sprintf "[%s]", join ',', map "[$_->[0],$_->[1]]", @$self;
}
1;