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 {