mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Get rid of max_print_dimension in filler objects
This commit is contained in:
parent
6c97e588b1
commit
20e73face2
4 changed files with 9 additions and 23 deletions
|
@ -3,9 +3,7 @@ use Moo;
|
|||
|
||||
use Slic3r::Geometry qw(PI);
|
||||
|
||||
has 'print' => (is => 'rw');
|
||||
has 'layer_id' => (is => 'rw');
|
||||
has 'max_print_dimension' => (is => 'rw');
|
||||
has 'angle' => (is => 'rw', default => sub { $Slic3r::Config->fill_angle });
|
||||
|
||||
sub angles () { [0, PI/2] }
|
||||
|
@ -17,7 +15,7 @@ sub infill_direction {
|
|||
# set infill angle
|
||||
my (@rotate, @shift);
|
||||
$rotate[0] = Slic3r::Geometry::deg2rad($self->angle);
|
||||
$rotate[1] = [ $self->max_print_dimension * sqrt(2) / 2, $self->max_print_dimension * sqrt(2) / 2 ];
|
||||
$rotate[1] = $surface->expolygon->bounding_box_center;
|
||||
@shift = @{$rotate[1]};
|
||||
|
||||
if (defined $self->layer_id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue