mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-26 05:56:35 +01:00
Ported encloses_point() to XS and renamed to contains_point()
This commit is contained in:
1 parent
a225a8b2ef
commit
5f81292f3f
22 files changed
+81
-76
No files matched your search
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user