mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +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:
@@ -51,15 +51,7 @@ sub id {
|
|||||||
|
|
||||||
sub lines {
|
sub lines {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my @lines = ();
|
return polyline_lines($self);
|
||||||
my $previous_point;
|
|
||||||
foreach my $point (@$self) {
|
|
||||||
if ($previous_point) {
|
|
||||||
push @lines, Slic3r::Line->new($previous_point, $point);
|
|
||||||
}
|
|
||||||
$previous_point = $point;
|
|
||||||
}
|
|
||||||
return @lines;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub boost_linestring {
|
sub boost_linestring {
|
||||||
|
|||||||
Reference in New Issue
Block a user