mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 03:13:39 +00:00
Code optimization
This commit is contained in:
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user