Skip to content

Commit

Permalink
Use Boost::Geometry::Utils for Douglas-Peucker
Browse files Browse the repository at this point in the history
  • Loading branch information
alranel committed Jan 27, 2013
1 parent ddaeaa7 commit 6cb891f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Slic3r/Polyline.pm
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6cb891f

Please sign in to comment.