Debugging code

xsdata-boost
Alessandro Ranellucci 2013-08-13 20:17:17 +02:00
parent b5df61df2c
commit 314f377d7b
1 changed files with 8 additions and 0 deletions

View File

@ -128,6 +128,14 @@ sub make_fill {
# add spacing between surfaces
@surfaces = map $_->offset(-$distance_between_surfaces / 2 * &Slic3r::INFILL_OVERLAP_OVER_SPACING), @surfaces;
if (0) {
require "Slic3r/SVG.pm";
Slic3r::SVG::output("fill_" . $layerm->print_z . ".svg",
expolygons => [ map $_->expolygon, grep !$_->is_solid, @surfaces ],
red_expolygons => [ map $_->expolygon, grep $_->is_solid, @surfaces ],
);
}
my @fills = ();
my @fills_ordering_points = ();
SURFACE: foreach my $surface (@surfaces) {