Use Slic3r::Geometry polyline_lines rather than duplicate implementation.
If it is good enough for polygons, it should be good enough for polylines.
This commit is contained in:
parent
b11778a85f
commit
ca78bbd88a
1 changed files with 1 additions and 9 deletions
|
@ -51,15 +51,7 @@ sub id {
|
|||
|
||||
sub lines {
|
||||
my $self = shift;
|
||||
my @lines = ();
|
||||
my $previous_point;
|
||||
foreach my $point (@$self) {
|
||||
if ($previous_point) {
|
||||
push @lines, Slic3r::Line->new($previous_point, $point);
|
||||
}
|
||||
$previous_point = $point;
|
||||
}
|
||||
return @lines;
|
||||
return polyline_lines($self);
|
||||
}
|
||||
|
||||
sub boost_linestring {
|
||||
|
|
Loading…
Reference in a new issue