Fix debug includes

This commit is contained in:
Martin Šach 2024-07-09 10:03:11 +02:00
parent 381a19fc04
commit 925f92c4a5
2 changed files with 12 additions and 4 deletions

View File

@ -22,6 +22,10 @@
#include "libslic3r/TriangleMesh.hpp" #include "libslic3r/TriangleMesh.hpp"
#include "libslic3r/libslic3r.h" #include "libslic3r/libslic3r.h"
#ifndef NDEBUG
#include "libslic3r/SVG.hpp"
#endif
namespace Slic3r { namespace sla { namespace Slic3r { namespace sla {

View File

@ -13,6 +13,14 @@
#include "SlicingAdaptive.hpp" #include "SlicingAdaptive.hpp"
#include "admesh/stl.h" #include "admesh/stl.h"
#ifndef NDEBUG
#define ADAPTIVE_LAYER_HEIGHT_DEBUG
#endif /* NDEBUG */
#ifdef ADAPTIVE_LAYER_HEIGHT_DEBUG
#include <boost/log/trivial.hpp>
#endif
// Based on the work of Florens Waserfall (@platch on github) // Based on the work of Florens Waserfall (@platch on github)
// and his paper // and his paper
// Florens Wasserfall, Norman Hendrich, Jianwei Zhang: // Florens Wasserfall, Norman Hendrich, Jianwei Zhang:
@ -35,10 +43,6 @@ ylabel("layer height");
legend("tan(a) as cura - topographic lines distance limit", "sqrt(tan(a)) as PrusaSlicer - error triangle area limit", "old slic3r - max distance metric", "new slic3r - Waserfall paper"); legend("tan(a) as cura - topographic lines distance limit", "sqrt(tan(a)) as PrusaSlicer - error triangle area limit", "old slic3r - max distance metric", "new slic3r - Waserfall paper");
#endif #endif
#ifndef NDEBUG
#define ADAPTIVE_LAYER_HEIGHT_DEBUG
#endif /* NDEBUG */
namespace Slic3r namespace Slic3r
{ {