Code optimization

This commit is contained in:
Alessandro Ranellucci committed 2012-02-25 22:18:07 +01:00
1 parent 170d29a789
commit c98f6734c7
5 files changed
+13 -20

No files matched your search

+1 -2
View File
@@ -121,8 +121,7 @@ sub bounding_box_polygon {
sub clip_line {
my $self = shift;
my ($line) = @_;
$line = Slic3r::Line->new($line) if ref $line eq 'ARRAY';
my ($line) = @_; # line must be a Slic3r::Line object
my @intersections = grep $_, map $_->intersection($line, 1), map $_->lines, @$self;
my @dir = (