Add Missing Includes Across src/libslic3r

Every libslic3r source and header now directly includes the headers declaring what it uses, rather than relying on the precompiled header or transitive includes. Generated with clang-tidy misc-include-cleaner, with libslic3r headers spelled libslic3r/... so they resolve outside the library's private include paths. MultiMaterialSegmentation.hpp, Support/SupportParameters.hpp and Format/STEP.hpp are made self-contained by hand.
This commit is contained in:
Hanif Koh
2026-10-03 13:46:08 +08:00
parent 84657ff11e
commit 893cb6fd9d
448 changed files with 3831 additions and 0 deletions
+22
View File
@@ -1,7 +1,16 @@
#include <algorithm>
#include <cassert>
#include <cfloat>
#include <math.h>
#include <limits>
#include <cstdint>
#include <stdio.h>
#include <numeric>
#include <cmath>
#include <string>
#include <vector>
#include <utility>
#include "../ClipperUtils.hpp"
#include "../EdgeGrid.hpp"
#include "../Geometry.hpp"
@@ -13,6 +22,12 @@
#include "../VariableWidth.hpp"
#include "FillBase.hpp"
#include "libslic3r/Exception.hpp"
#include "libslic3r/Config.hpp"
#include "libslic3r/ExPolygon.hpp"
#include "libslic3r/ExtrusionEntity.hpp"
#include "libslic3r/ExtrusionEntityCollection.hpp"
#include "libslic3r/BoundingBox.hpp"
#include "FillConcentric.hpp"
#include "FillSpiralInset.hpp"
#include "FillHoneycomb.hpp"
@@ -28,6 +43,13 @@
// BBS: new infill pattern header
#include "FillConcentricInternal.hpp"
#include "FillCrossHatch.hpp"
#include "libslic3r/Polyline.hpp"
#include "libslic3r/ShortestPath.hpp"
#include "libslic3r/Line.hpp"
#include "libslic3r/Polygon.hpp"
#include "libslic3r/Utils.hpp"
#include "clipper2/clipper.core.h"
#include "clipper2/clipper.offset.h"
// #define INFILL_DEBUG_OUTPUT
namespace Slic3r {