diff options
author | bubnikv <bubnikv@gmail.com> | 2016-11-09 12:24:45 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-11-09 12:24:45 +0300 |
commit | eb0ab3861872a8cf1ab08b0d02a16942acdabaac (patch) | |
tree | 57760fb66cd697b01ba2b12cf732023826771d04 /xs/src | |
parent | e15b5f4587c4e24d37f515d4b41bb55f958e9e52 (diff) |
Fixes https://github.com/prusa3d/Slic3r/issues/26
Strange behavior of Extra perimeters and ensure wall thickness
Old behavior is re-enabled when ensure vertical wall thickness is off.
Diffstat (limited to 'xs/src')
-rw-r--r-- | xs/src/libslic3r/LayerRegion.cpp | 5 | ||||
-rw-r--r-- | xs/src/libslic3r/PrintObject.cpp | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/xs/src/libslic3r/LayerRegion.cpp b/xs/src/libslic3r/LayerRegion.cpp index f25ad2dc0..23a1bd9b0 100644 --- a/xs/src/libslic3r/LayerRegion.cpp +++ b/xs/src/libslic3r/LayerRegion.cpp @@ -377,6 +377,7 @@ LayerRegion::prepare_fill_surfaces() #ifdef SLIC3R_DEBUG_SLICE_PROCESSING export_region_slices_to_svg_debug("2_prepare_fill_surfaces"); + export_region_fill_surfaces_to_svg_debug("2_prepare_fill_surfaces"); #endif /* SLIC3R_DEBUG_SLICE_PROCESSING */ } @@ -426,8 +427,10 @@ void LayerRegion::export_region_fill_surfaces_to_svg(const char *path) SVG svg(path, bbox); const float transparency = 0.5f; - for (Surfaces::const_iterator surface = this->fill_surfaces.surfaces.begin(); surface != this->fill_surfaces.surfaces.end(); ++surface) + for (Surfaces::const_iterator surface = this->fill_surfaces.surfaces.begin(); surface != this->fill_surfaces.surfaces.end(); ++surface) { svg.draw(surface->expolygon, surface_type_to_color_name(surface->surface_type), transparency); + svg.draw_outline(surface->expolygon, "black", "blue", scale_(0.05)); + } export_surface_type_legend_to_svg(svg, legend_pos); svg.Close(); } diff --git a/xs/src/libslic3r/PrintObject.cpp b/xs/src/libslic3r/PrintObject.cpp index 8fbbf8c3e..34f6fbbb8 100644 --- a/xs/src/libslic3r/PrintObject.cpp +++ b/xs/src/libslic3r/PrintObject.cpp @@ -370,6 +370,7 @@ PrintObject::discover_vertical_shells() for (int n = (int)idx_layer - layerm->region()->config.bottom_solid_layers + 1; n < (int)idx_layer + layerm->region()->config.top_solid_layers; ++ n) if (n >= 0 && n < (int)this->layers.size()) polygons_append(shell, this->layers[n]->perimeter_expolygons.expolygons); + //FIXME Add the top / bottom layerm->slices to the mix! #ifdef SLIC3R_DEBUG_SLICE_PROCESSING { static size_t idx = 0; |