Bugfix: some solid layers were skipped. #47

This commit is contained in:
Alessandro Ranellucci 2011-11-16 14:53:30 +01:00
parent 9ab81880c9
commit 47c0da8110
2 changed files with 12 additions and 36 deletions

View file

@ -4,7 +4,7 @@ use Moo;
use Math::Clipper ':all';
use Slic3r::Geometry qw(polygon_lines points_coincide angle3points polyline_lines nearest_point
line_length collinear X Y A B PI);
use Slic3r::Geometry::Clipper qw(safety_offset union_ex);
use Slic3r::Geometry::Clipper qw(safety_offset union_ex PFT_EVENODD);
use XXX;
# a sequential number of layer, starting at 0
@ -301,7 +301,7 @@ sub make_surfaces {
}
{
my $expolygons = union_ex([ @polygons ]);
my $expolygons = union_ex([ @polygons ], PFT_EVENODD);
Slic3r::debugf " %d surface(s) having %d holes detected from %d polylines\n",
scalar(@$expolygons), scalar(map $_->holes, @$expolygons), scalar(@polygons);