mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Always fix self-intersecting polygons that Douglas-Peucker might return
This commit is contained in:
@@ -68,8 +68,8 @@ sub simplify {
|
||||
my $self = shift;
|
||||
my $tolerance = shift || 10;
|
||||
|
||||
@$self = @{ Boost::Geometry::Utils::linestring_simplify($self, $tolerance) };
|
||||
bless $_, 'Slic3r::Point' for @$self;
|
||||
my $simplified = Boost::Geometry::Utils::linestring_simplify($self, $tolerance);
|
||||
return (ref $self)->new($simplified);
|
||||
}
|
||||
|
||||
sub reverse {
|
||||
|
||||
Reference in New Issue
Block a user