mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
Use linestring_length() from Boost
This commit is contained in:
@@ -79,9 +79,7 @@ sub reverse {
|
||||
|
||||
sub length {
|
||||
my $self = shift;
|
||||
my $length = 0;
|
||||
$length += $_->length for $self->lines;
|
||||
return $length;
|
||||
return Boost::Geometry::Utils::linestring_length($self);
|
||||
}
|
||||
|
||||
sub grow {
|
||||
|
||||
Reference in New Issue
Block a user