mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Generate infill using each object's bounding_box instead of full print. #1177
This commit is contained in:
parent
627debf284
commit
bbb190dc68
4 changed files with 21 additions and 14 deletions
|
@ -17,7 +17,7 @@ use Slic3r::Geometry::Clipper qw(union_ex diff diff_ex intersection_ex offset);
|
|||
use Slic3r::Surface ':types';
|
||||
|
||||
|
||||
has 'print' => (is => 'ro', required => 1, weak_ref => 1);
|
||||
has 'object' => (is => 'ro', required => 1, weak_ref => 1);
|
||||
has 'fillers' => (is => 'rw', default => sub { {} });
|
||||
|
||||
our %FillTypes = (
|
||||
|
@ -40,7 +40,7 @@ sub filler {
|
|||
}
|
||||
|
||||
$self->fillers->{$filler} ||= $FillTypes{$filler}->new(
|
||||
bounding_box => [ $self->print->bounding_box ],
|
||||
bounding_box => [ $self->object->bounding_box ],
|
||||
);
|
||||
return $self->fillers->{$filler};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue