mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 04:54:08 -06:00
More fixes for bridges. #58
This commit is contained in:
parent
d056535bd8
commit
eb64cc4965
4 changed files with 21 additions and 8 deletions
|
@ -181,6 +181,20 @@ sub detect_surfaces_type {
|
|||
@$expolygons;
|
||||
};
|
||||
|
||||
# the contours must be offsetted by half extrusion width inwards
|
||||
{
|
||||
my $distance = scale $Slic3r::flow_width / 2;
|
||||
foreach my $layer (@{$self->layers}) {
|
||||
my @surfaces = @{$layer->slices};
|
||||
@{$layer->slices} = ();
|
||||
foreach my $surface (@surfaces) {
|
||||
push @{$layer->slices}, map Slic3r::Surface->cast_from_expolygon
|
||||
($_, surface_type => 'internal'),
|
||||
$surface->expolygon->offset_ex(-$distance);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (my $i = 0; $i < $self->layer_count; $i++) {
|
||||
my $layer = $self->layers->[$i];
|
||||
Slic3r::debugf "Detecting solid surfaces for layer %d\n", $layer->id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue