Ported encloses_point() to XS and renamed to contains_point()
This commit is contained in:
parent
a225a8b2ef
commit
5f81292f3f
22 changed files with 81 additions and 76 deletions
|
@ -60,7 +60,7 @@ use Slic3r::Test;
|
|||
my $move_dest = Slic3r::Point->new_scale(@$info{qw(new_X new_Y)});
|
||||
$external_loops{$self->Z}++;
|
||||
$has_outwards_move = 1
|
||||
if !Slic3r::Polygon->new_scale(@$cur_loop)->encloses_point($move_dest)
|
||||
if !Slic3r::Polygon->new_scale(@$cur_loop)->contains_point($move_dest)
|
||||
? ($external_loops{$self->Z} == 2) # contour should include destination
|
||||
: ($external_loops{$self->Z} == 1); # hole should not
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue