mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-15 02:01:47 +08:00
Move bridge detection to its own method
This commit is contained in:
parent
e088d9b3f7
commit
17f76c4951
@ -517,7 +517,12 @@ sub process_external_surfaces {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# detect bridge direction (skip bottom layer)
|
# detect bridge direction (skip bottom layer)
|
||||||
if ($self->id > 0) {
|
$self->_detect_bridges if $self->id > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub _detect_bridges {
|
||||||
|
my $self = shift;
|
||||||
|
|
||||||
my @bottom = grep $_->surface_type == S_TYPE_BOTTOM, @{$self->fill_surfaces}; # surfaces
|
my @bottom = grep $_->surface_type == S_TYPE_BOTTOM, @{$self->fill_surfaces}; # surfaces
|
||||||
my @lower = @{$self->layer->object->layers->[ $self->id - 1 ]->slices}; # expolygons
|
my @lower = @{$self->layer->object->layers->[ $self->id - 1 ]->slices}; # expolygons
|
||||||
|
|
||||||
@ -625,7 +630,6 @@ sub process_external_surfaces {
|
|||||||
|
|
||||||
$surface->bridge_angle($bridge_angle);
|
$surface->bridge_angle($bridge_angle);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user