mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Adapt new code to contains_point()
This commit is contained in:
@@ -249,7 +249,7 @@ sub make_perimeters {
|
|||||||
# $polynode is the outermost loop of an island
|
# $polynode is the outermost loop of an island
|
||||||
my @holes = ();
|
my @holes = ();
|
||||||
for (my $i = 0; $i <= $#$holes_pt; $i++) {
|
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
|
push @holes, splice @$holes_pt, $i, 1; # remove from candidates to reduce complexity
|
||||||
$i--;
|
$i--;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user