1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-22 09:54:27 +00:00

Use Douglas-Peucker simplification always and remove the inefficient parallel lines merging algorithm. #277

This commit is contained in:
Alessandro Ranellucci
2012-05-01 11:41:08 +02:00
parent 08efb15f4d
commit ee33d570d7
3 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -112,7 +112,8 @@ sub make_surfaces {
{
# merge everything
my $expolygons = union_ex($loops);
$_->simplify(scale $Slic3r::resolution) for @$expolygons;
Slic3r::debugf " %d surface(s) having %d holes detected from %d polylines\n",
scalar(@$expolygons), scalar(map $_->holes, @$expolygons), scalar(@$loops);
-1
View File
@@ -267,7 +267,6 @@ sub make_loops {
Slic3r::debugf " Discovered %s polygon of %d points\n",
($polygons[-1]->is_counter_clockwise ? 'ccw' : 'cw'), scalar(@points)
if $Slic3r::debug;
pop @polygons if !$polygons[-1]->cleanup;
}
return [@polygons];