mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-30 04:02:52 -06:00
Removed wrong optimization causing possible extra retractions while moving in infill space
This commit is contained in:
parent
4474595629
commit
015580629b
2 changed files with 3 additions and 11 deletions
|
|
@ -15,7 +15,7 @@ has 'print_z' => (is => 'ro', required => 1); # Z used for printing in
|
|||
has 'height' => (is => 'ro', required => 1); # layer height in unscaled coordinates
|
||||
|
||||
# collection of expolygons generated by slicing the original geometry;
|
||||
# also known as 'islands' (all regions are merged here)
|
||||
# also known as 'islands' (all regions and surface types are merged here)
|
||||
has 'slices' => (is => 'rw');
|
||||
|
||||
# ordered collection of extrusion paths to fill surfaces for support material
|
||||
|
|
@ -78,14 +78,6 @@ sub region {
|
|||
# merge all regions' slices to get islands
|
||||
sub make_slices {
|
||||
my $self = shift;
|
||||
|
||||
# optimization for single-region layers
|
||||
my @regions_with_slices = grep { @{$_->slices} } @{$self->regions};
|
||||
if (@regions_with_slices == 1) {
|
||||
$self->slices([ map $_->expolygon, @{$regions_with_slices[0]->slices} ]);
|
||||
return;
|
||||
}
|
||||
|
||||
$self->slices(union_ex([ map $_->p, map @{$_->slices}, @{$self->regions} ]));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue