Skip to content

Commit

Permalink
Fix debug includes
Browse files Browse the repository at this point in the history
  • Loading branch information
SachCZ committed Jul 9, 2024
1 parent 381a19f commit 925f92c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/libslic3r/SLA/Pad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#include "libslic3r/TriangleMesh.hpp"
#include "libslic3r/libslic3r.h"

#ifndef NDEBUG
#include "libslic3r/SVG.hpp"
#endif


namespace Slic3r { namespace sla {

Expand Down
12 changes: 8 additions & 4 deletions src/libslic3r/SlicingAdaptive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <boost/log/trivial.hpp>
#endif

// Based on the work of Florens Waserfall (@platch on github)
// and his paper
// Florens Wasserfall, Norman Hendrich, Jianwei Zhang:
Expand All @@ -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
{

Expand Down

0 comments on commit 925f92c

Please sign in to comment.