Print the number of bogus holes to debug output

This commit is contained in:
Alessandro Ranellucci 2012-01-21 11:24:26 +01:00
parent 92cdaf2f2d
commit c5b6787a19
2 changed files with 2 additions and 1 deletions

View File

@ -144,6 +144,7 @@ sub make_surfaces {
[ values %bogus_holes ],
) if %bogus_holes;
Slic3r::debugf " %d bogus hole(s) removed\n", scalar(values %bogus_holes) if %bogus_holes;
Slic3r::debugf " %d surface(s) having %d holes detected from %d polylines\n",
scalar(@$expolygons), scalar(map $_->holes, @$expolygons), scalar(@$loops);

View File

@ -164,7 +164,7 @@ sub make_loops {
$visited_lines{ $_->id } = 1 for @seen_lines;
pop @points;
Slic3r::debugf "Discovered polygon of %d points\n", scalar(@points);
Slic3r::debugf " Discovered polygon of %d points\n", scalar(@points);
push @polygons, Slic3r::Polygon->new(@points);
$polygons[-1]->cleanup;
}