From 3a3b24ec7c803c58919a5401e5804261999875b4 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 12 Dec 2016 11:38:39 +0100 Subject: [PATCH] Two minor fixes --- xs/src/libslic3r/LayerRegion.cpp | 2 +- xs/src/libslic3r/SLAPrint.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/xs/src/libslic3r/LayerRegion.cpp b/xs/src/libslic3r/LayerRegion.cpp index b97fa0727..173cb919f 100644 --- a/xs/src/libslic3r/LayerRegion.cpp +++ b/xs/src/libslic3r/LayerRegion.cpp @@ -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 diff --git a/xs/src/libslic3r/SLAPrint.cpp b/xs/src/libslic3r/SLAPrint.cpp index 0f98b79ee..2fdf16fb4 100644 --- a/xs/src/libslic3r/SLAPrint.cpp +++ b/xs/src/libslic3r/SLAPrint.cpp @@ -5,6 +5,7 @@ #include "Geometry.hpp" #include "Surface.hpp" #include +#include #include 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();