mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 07:03:59 -06:00
Merge branch 'master' into clipper-optimizations
This commit is contained in:
commit
b160feacfd
17 changed files with 195 additions and 123 deletions
|
@ -136,7 +136,7 @@ sub _merge_loops {
|
|||
# winding order.
|
||||
# TODO: find a faster algorithm for this.
|
||||
my @loops = sort { $a->encloses_point($b->[0]) ? 0 : 1 } @$loops; # outer first
|
||||
$safety_offset //= scale 0.1;
|
||||
$safety_offset //= scale 0.0499;
|
||||
@loops = @{ safety_offset(\@loops, $safety_offset) };
|
||||
my $expolygons = [];
|
||||
while (my $loop = shift @loops) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue