Fill gaps using medial axis detection

This commit is contained in:
Alessandro Ranellucci 2012-01-12 22:05:35 +01:00
parent a3a9cf5749
commit 90d10b24a8
7 changed files with 31 additions and 10 deletions

View file

@ -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;