From 925f92c4a5eee61e03f6963b13c58a2fb1d815f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C5=A0ach?= Date: Tue, 9 Jul 2024 10:03:11 +0200 Subject: [PATCH] Fix debug includes --- src/libslic3r/SLA/Pad.cpp | 4 ++++ src/libslic3r/SlicingAdaptive.cpp | 12 ++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/libslic3r/SLA/Pad.cpp b/src/libslic3r/SLA/Pad.cpp index a1cab4e890..c299ae8f82 100644 --- a/src/libslic3r/SLA/Pad.cpp +++ b/src/libslic3r/SLA/Pad.cpp @@ -22,6 +22,10 @@ #include "libslic3r/TriangleMesh.hpp" #include "libslic3r/libslic3r.h" +#ifndef NDEBUG +#include "libslic3r/SVG.hpp" +#endif + namespace Slic3r { namespace sla { diff --git a/src/libslic3r/SlicingAdaptive.cpp b/src/libslic3r/SlicingAdaptive.cpp index 8932d7536d..aec64497d8 100644 --- a/src/libslic3r/SlicingAdaptive.cpp +++ b/src/libslic3r/SlicingAdaptive.cpp @@ -13,6 +13,14 @@ #include "SlicingAdaptive.hpp" #include "admesh/stl.h" +#ifndef NDEBUG + #define ADAPTIVE_LAYER_HEIGHT_DEBUG +#endif /* NDEBUG */ + +#ifdef ADAPTIVE_LAYER_HEIGHT_DEBUG +#include +#endif + // Based on the work of Florens Waserfall (@platch on github) // and his paper // 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"); #endif -#ifndef NDEBUG - #define ADAPTIVE_LAYER_HEIGHT_DEBUG -#endif /* NDEBUG */ - namespace Slic3r {