From b47b8ee34f56a10c056bce4206cefef24c44ef59 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 23 Nov 2013 22:45:17 +0100 Subject: [PATCH] Adapt new code to contains_point() --- lib/Slic3r/Layer/Region.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Layer/Region.pm b/lib/Slic3r/Layer/Region.pm index 4a161b8c0..f02108c3c 100644 --- a/lib/Slic3r/Layer/Region.pm +++ b/lib/Slic3r/Layer/Region.pm @@ -249,7 +249,7 @@ sub make_perimeters { # $polynode is the outermost loop of an island my @holes = (); for (my $i = 0; $i <= $#$holes_pt; $i++) { - if ($polynode->{outer}->encloses_point($holes_pt->[$i]{outer}->first_point)) { + if ($polynode->{outer}->contains_point($holes_pt->[$i]{outer}->first_point)) { push @holes, splice @$holes_pt, $i, 1; # remove from candidates to reduce complexity $i--; }