mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-26 14:06:32 +01:00
Always fix self-intersecting polygons that Douglas-Peucker might return
This commit is contained in:
1 parent
dc0f706789
commit
33b40eda18
14 files changed
+85
-55
No files matched your search
+2
-2
@@ -43,8 +43,8 @@ use Slic3r::Test;
|
||||
$_->slice(keep_meshes => 1) for @{$self->objects};
|
||||
$_->make_perimeters for @{$self->objects};
|
||||
foreach my $layer (map @{$_->layers}, @{$self->objects}) {
|
||||
$_->simplify(&Slic3r::SCALED_RESOLUTION)
|
||||
for @{$layer->slices}, (map $_->expolygon, map @{$_->slices}, @{$layer->regions});
|
||||
@$_ = map $_->simplify(&Slic3r::SCALED_RESOLUTION), @$_
|
||||
for $layer->slices, (map $_->slices, @{$layer->regions});
|
||||
}
|
||||
$_->detect_surfaces_type for @{$self->objects};
|
||||
$_->prepare_fill_surfaces for map @{$_->regions}, map @{$_->layers}, @{$self->objects};
|
||||
|
||||
Reference in new issue
Block a user