mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 07:03:59 -06:00
Bugfix: some islands having ho holes and contained in holes themselves were ignored
This commit is contained in:
parent
47df3f8f2d
commit
a86bc260e7
4 changed files with 47 additions and 12 deletions
|
@ -140,4 +140,11 @@ sub rotate {
|
|||
$_->rotate(@_) for @$self;
|
||||
}
|
||||
|
||||
sub area {
|
||||
my $self = shift;
|
||||
my $area = $self->contour->area;
|
||||
$area -= $_->area for $self->holes;
|
||||
return $area;
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue