From c5b6787a190f594fa72c7014664b0206d79a3362 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 21 Jan 2012 11:24:26 +0100 Subject: [PATCH] Print the number of bogus holes to debug output --- lib/Slic3r/Layer.pm | 1 + lib/Slic3r/TriangleMesh.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/Layer.pm b/lib/Slic3r/Layer.pm index 04edf9c65..d03365b76 100644 --- a/lib/Slic3r/Layer.pm +++ b/lib/Slic3r/Layer.pm @@ -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); diff --git a/lib/Slic3r/TriangleMesh.pm b/lib/Slic3r/TriangleMesh.pm index 1258387ae..1d68804a1 100644 --- a/lib/Slic3r/TriangleMesh.pm +++ b/lib/Slic3r/TriangleMesh.pm @@ -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; }