mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
Reapply correct optimization for simplifiying fill_surfaces before performing the offset. #1325
This commit is contained in:
@@ -150,12 +150,14 @@ sub collapse_ex {
|
||||
|
||||
sub simplify_polygon {
|
||||
my ($polygon, $pft) = @_;
|
||||
return @{ Math::Clipper::simplify_polygon($polygon, $pft // PFT_NONZERO) };
|
||||
return map Slic3r::Polygon->new(@$_),
|
||||
@{ Math::Clipper::simplify_polygon($polygon, $pft // PFT_NONZERO) };
|
||||
}
|
||||
|
||||
sub simplify_polygons {
|
||||
my ($polygons, $pft) = @_;
|
||||
return @{ Math::Clipper::simplify_polygons($polygons, $pft // PFT_NONZERO) };
|
||||
return map Slic3r::Polygon->new(@$_),
|
||||
@{ Math::Clipper::simplify_polygons($polygons, $pft // PFT_NONZERO) };
|
||||
}
|
||||
|
||||
sub traverse_pt {
|
||||
|
||||
Reference in New Issue
Block a user