mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 13:34:05 -06:00
Refactored Line objects to arrayrefs
This commit is contained in:
parent
e410410dc7
commit
c97a89c07c
10 changed files with 47 additions and 44 deletions
|
@ -104,7 +104,6 @@ sub add_line {
|
|||
my $self = shift;
|
||||
my ($line) = @_;
|
||||
|
||||
$line = Slic3r::Line->cast($line);
|
||||
return if $line->a->coincides_with($line->b);
|
||||
|
||||
push @{ $self->lines }, $line;
|
||||
|
@ -135,7 +134,7 @@ sub make_surfaces {
|
|||
# so a simple head-to-tail algorithm would work
|
||||
|
||||
my @lines = ();
|
||||
push @lines, map $_->p, @{$self->lines};
|
||||
push @lines, @{$self->lines};
|
||||
#@lines = grep line_length($_) > xx, @lines;
|
||||
|
||||
#use Slic3r::SVG;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue