1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-12 08:14:26 +00:00

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
+1 -9
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 {