Optimization: Remove useless calls to union()
This commit is contained in:
parent
10ab3bbb86
commit
09684c67c2
@ -150,7 +150,7 @@ sub _merge_loops {
|
||||
# of the loops, since the Orientation() function provided by Clipper
|
||||
# would do the same, thus repeating the calculation
|
||||
$slices = ($area[$i] >= 0)
|
||||
? union([ $loops->[$i], @$slices ])
|
||||
? [ $loops->[$i], @$slices ]
|
||||
: diff($slices, [$loops->[$i]]);
|
||||
}
|
||||
|
||||
|
@ -654,7 +654,7 @@ sub discover_horizontal_shells {
|
||||
offset($too_narrow, +$margin),
|
||||
[ map $_->p, @neighbor_fill_surfaces ],
|
||||
)};
|
||||
$new_internal_solid = $solid = union([ @grown, @$new_internal_solid ]);
|
||||
$new_internal_solid = $solid = [ @grown, @$new_internal_solid ];
|
||||
} else {
|
||||
# if we're printing a hollow object, we discard such small parts
|
||||
$new_internal_solid = $solid = diff(
|
||||
|
Loading…
Reference in New Issue
Block a user