Semi-working Boost.Polygon medial axis. Hangs after perimeters, though. Needs pruning and chaining

This commit is contained in:
Alessandro Ranellucci 2014-01-10 11:47:16 +01:00
parent f9642786d3
commit 07a4c37c4c
4 changed files with 37 additions and 22 deletions

View file

@ -224,6 +224,16 @@ sub make_perimeters {
# process thin walls by collapsing slices to single passes
if (@thin_walls) {
my @p = map @{$_->medial_axis($pspacing)}, @thin_walls;
if (0) {
use Slic3r::SVG;
Slic3r::SVG::output(
"medial_axis.svg",
no_arrows => 1,
expolygons => \@thin_walls,
polylines => \@p,
);
exit;
}
my @paths = ();
for my $p (@p) {
next if $p->length <= $pspacing * 2;