mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
Use Boost::Geometry::Utils for Douglas-Peucker
This commit is contained in:
@@ -68,7 +68,7 @@ sub simplify {
|
||||
my $self = shift;
|
||||
my $tolerance = shift || 10;
|
||||
|
||||
@$self = @{ Slic3r::Geometry::douglas_peucker($self, $tolerance) };
|
||||
@$self = @{ Boost::Geometry::Utils::linestring_simplify($self, $tolerance) };
|
||||
bless $_, 'Slic3r::Point' for @$self;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user