Finished implementing Boost.Polygon medial axis. Some cleanup needed

This commit is contained in:
Alessandro Ranellucci 2014-01-10 16:18:55 +01:00
parent 07a4c37c4c
commit 7b0decbeb1
7 changed files with 117 additions and 194 deletions

View file

@ -224,16 +224,17 @@ 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;
require "Slic3r/SVG.pm";
Slic3r::SVG::output(
"medial_axis.svg",
no_arrows => 1,
expolygons => \@thin_walls,
#expolygons => \@thin_walls,
polylines => \@p,
);
exit;
}
my @paths = ();
for my $p (@p) {
next if $p->length <= $pspacing * 2;