Two minor fixes

This commit is contained in:
Alessandro Ranellucci 2016-12-12 11:38:39 +01:00
parent 540d632bbb
commit 3a3b24ec7c
2 changed files with 3 additions and 2 deletions

View File

@ -86,7 +86,7 @@ LayerRegion::process_external_surfaces(const Layer* lower_layer)
BridgeDetector bd(
surface->expolygon,
lower_layer->slices,
this->flow(frInfill, this->layer()->height, true).scaled_width()
this->flow(frInfill, true).scaled_width()
);
#ifdef SLIC3R_DEBUG

View File

@ -5,6 +5,7 @@
#include "Geometry.hpp"
#include "Surface.hpp"
#include <iostream>
#include <complex>
#include <cstdio>
namespace Slic3r {
@ -161,7 +162,7 @@ SLAPrint::_infill_layer(size_t i, const Fill* _fill)
Polygons internal = layer.slices;
for (size_t j = 0; j < this->layers.size(); ++j) {
const Layer &other = this->layers[j];
if (abs(other.print_z - layer.print_z) > shell_thickness) continue;
if (std::abs(other.print_z - layer.print_z) > shell_thickness) continue;
if (j == 0 || j == this->layers.size()-1) {
internal.clear();