From 3b81bf0e3320c7682a9c160f3ea078a80acedfde Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 11 Apr 2016 17:48:27 +0200 Subject: [PATCH] Remove some debugging info. --- xs/src/libslic3r/Fill/FillBase.cpp | 10 +++------- xs/src/libslic3r/Fill/FillBase.hpp | 1 - 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/xs/src/libslic3r/Fill/FillBase.cpp b/xs/src/libslic3r/Fill/FillBase.cpp index 64282da94..07d6f38b9 100644 --- a/xs/src/libslic3r/Fill/FillBase.cpp +++ b/xs/src/libslic3r/Fill/FillBase.cpp @@ -49,7 +49,7 @@ std::pair FillWithDirection::infill_direction(const Surface *surfa if (out_angle == FLT_MAX) { //FIXME Vojtech: Add a warning? - // warn "Using undefined infill angle"; + printf("Using undefined infill angle\n"); out_angle = 0.f; } @@ -61,22 +61,18 @@ std::pair FillWithDirection::infill_direction(const Surface *surfa // use bridge angle //FIXME Vojtech: Add a debugf? // Slic3r::debugf "Filling bridge with angle %d\n", rad2deg($surface->bridge_angle); -#if 1 -//#ifdef _DEBUG +#ifdef SLIC3R_DEBUG printf("Filling bridge with angle %f\n", surface->bridge_angle); -#endif /* _DEBUG */ +#endif /* SLIC3R_DEBUG */ out_angle = surface->bridge_angle; } else if (this->layer_id != size_t(-1)) { // alternate fill direction - printf("Filling layer %d, thickness %d, id: %d\n", - this->layer_id, surface->thickness_layers, int(this->layer_id / surface->thickness_layers)); out_angle += this->_layer_angle(this->layer_id / surface->thickness_layers); } else { printf("Layer_ID undefined!\n"); } out_angle += float(M_PI/2.); - printf("out_angle: %f", out_angle); return std::pair(out_angle, out_shift); } diff --git a/xs/src/libslic3r/Fill/FillBase.hpp b/xs/src/libslic3r/Fill/FillBase.hpp index 1a7dbde13..354d16535 100644 --- a/xs/src/libslic3r/Fill/FillBase.hpp +++ b/xs/src/libslic3r/Fill/FillBase.hpp @@ -91,7 +91,6 @@ class FillWithDirection : public Fill public: virtual float _layer_angle(size_t idx) const { bool odd = idx & 1; - printf("_layer_angle: %s\n", odd ? "odd" : "even"); return (idx & 1) ? float(M_PI/2.) : 0; } virtual std::pair infill_direction(const Surface *surface) const ;