mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 22:54:08 -06:00
Code optimization
This commit is contained in:
parent
170d29a789
commit
c98f6734c7
5 changed files with 13 additions and 20 deletions
|
@ -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 = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue