mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 23:23:59 -06:00
Increase scale factor for Clipper::offset
A default scale of 1 was being calculated most of the time. That's too low to avoid artifacts from offsetting concave curves. Setting scale to a default of 100000 eliminates artifacts in the test cases in issues #700, #702 and #703. There is a risk of large point proliferation with this scale in combination with the JT_ROUND option, but in the four places where that option is used, scale is already explicitly set to a safer low value.
This commit is contained in:
parent
02b11fb49a
commit
2bcac88683
2 changed files with 3 additions and 3 deletions
|
@ -330,7 +330,7 @@ sub prepare_fill_surfaces {
|
|||
|
||||
# offset inwards
|
||||
my @offsets = $surface->expolygon->offset_ex(-$distance);
|
||||
@offsets = @{union_ex(Math::Clipper::offset([ map @$_, @offsets ], $distance, 100, JT_MITER))};
|
||||
@offsets = @{union_ex(Math::Clipper::offset([ map @$_, @offsets ], $distance, 100000, JT_MITER))};
|
||||
map Slic3r::Surface->new(
|
||||
expolygon => $_,
|
||||
surface_type => $surface->surface_type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue