mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 02:07:54 -06:00
Fill gaps using medial axis detection
This commit is contained in:
parent
a3a9cf5749
commit
90d10b24a8
7 changed files with 31 additions and 10 deletions
|
@ -161,6 +161,17 @@ sub make_fill {
|
|||
],
|
||||
) if @paths;
|
||||
}
|
||||
|
||||
# add thin fill regions
|
||||
push @{ $layer->fills }, Slic3r::ExtrusionPath::Collection->new(
|
||||
paths => [
|
||||
map {
|
||||
$_->isa('Slic3r::Polygon')
|
||||
? Slic3r::ExtrusionLoop->new(polygon => $_, role => 'solid-fill')->split_at($_->[0])
|
||||
: Slic3r::ExtrusionPath->new(polyline => $_, role => 'solid-fill')
|
||||
} @{$layer->thin_fills},
|
||||
],
|
||||
) if @{$layer->thin_fills};
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue