mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07: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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user