Use Boost::Geometry::Utils for Douglas-Peucker

medial-thinwall
Alessandro Ranellucci 2013-01-28 00:09:19 +01:00
parent ddaeaa7591
commit 6cb891f2db
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}