mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-21 20:18:17 +08:00
Use Boost::Geometry::Utils for Douglas-Peucker
This commit is contained in:
parent
ddaeaa7591
commit
6cb891f2db
@ -68,7 +68,7 @@ sub simplify {
|
|||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $tolerance = shift || 10;
|
my $tolerance = shift || 10;
|
||||||
|
|
||||||
@$self = @{ Slic3r::Geometry::douglas_peucker($self, $tolerance) };
|
@$self = @{ Boost::Geometry::Utils::linestring_simplify($self, $tolerance) };
|
||||||
bless $_, 'Slic3r::Point' for @$self;
|
bless $_, 'Slic3r::Point' for @$self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user