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:
Mark Hindess 2012-07-01 23:15:17 +01:00
parent b11778a85f
commit ca78bbd88a

View file

@ -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 {