mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 07:03:59 -06:00
Customizable overlap ratio (it defaults to 0.15 now)
This commit is contained in:
parent
9f6be233f8
commit
d9a70ea80d
15 changed files with 67 additions and 42 deletions
|
@ -45,12 +45,12 @@ sub make_perimeter {
|
|||
push @{ $perimeters[-1] }, [@last_offsets];
|
||||
|
||||
# offset distance for inner loops
|
||||
$distance = $Slic3r::flow_width / $Slic3r::resolution;
|
||||
$distance = scale $Slic3r::flow_spacing;
|
||||
}
|
||||
|
||||
# create one more offset to be used as boundary for fill
|
||||
{
|
||||
$distance -= scale $Slic3r::flow_width * $Slic3r::perimeter_infill_overlap_ratio;
|
||||
$distance -= scale $Slic3r::flow_spacing;
|
||||
my @fill_boundaries = map Slic3r::Surface->cast_from_expolygon
|
||||
($_, surface_type => $surface->surface_type),
|
||||
map $_->offset_ex(-$distance), @last_offsets;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue