mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Some work to reduce recursive dependencies between classes
This commit is contained in:
parent
849e714147
commit
9f41f0279e
5 changed files with 30 additions and 27 deletions
|
@ -65,6 +65,9 @@ sub BUILD {
|
|||
print_z => $print_z,
|
||||
slice_z => scale $slice_z,
|
||||
);
|
||||
if ($id > 0) {
|
||||
$self->layers->[-2]->upper_layer($self->layers->[-1]);
|
||||
}
|
||||
$id++;
|
||||
|
||||
$slice_z += $height/2; # add the other half layer
|
||||
|
@ -508,6 +511,17 @@ sub bridge_over_infill {
|
|||
}
|
||||
}
|
||||
|
||||
sub process_external_surfaces {
|
||||
my ($self) = @_;
|
||||
|
||||
for my $region_id (0 .. ($self->print->regions_count-1)) {
|
||||
$self->layers->[0]->regions->[$region_id]->process_external_surfaces(undef);
|
||||
for my $layer_id (1 .. ($self->layer_count-1)) {
|
||||
$self->layers->[$layer_id]->regions->[$region_id]->process_external_surfaces($self->layers->[$layer_id-1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sub discover_horizontal_shells {
|
||||
my $self = shift;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue