mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-26 05:56:35 +01:00
New automatic detection of additional required perimeters for better quality with domes and sloping walls. #198
This commit is contained in:
1 parent
4b7e9fc284
commit
edbdc5ec55
4 files changed
+68
-4
No files matched your search
+3
-2
@@ -206,9 +206,10 @@ sub make_perimeters {
|
||||
$hole->reverse;
|
||||
}
|
||||
|
||||
# create other offsets
|
||||
# generate perimeters inwards
|
||||
my $loop_number = $Slic3r::perimeters + ($surface->additional_inner_perimeters || 0);
|
||||
push @perimeters, [];
|
||||
for (my $loop = 0; $loop < $Slic3r::perimeters; $loop++) {
|
||||
for (my $loop = 0; $loop < $loop_number; $loop++) {
|
||||
# offsetting a polygon can result in one or many offset polygons
|
||||
@last_offsets = map $_->offset_ex(-$distance), @last_offsets if $distance;
|
||||
last if !@last_offsets;
|
||||
|
||||
Reference in new issue
Block a user