mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-10 00:59:10 +08: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:
parent
b11778a85f
commit
ca78bbd88a
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user