diff --git a/src/libslic3r/BuildVolume.cpp b/src/libslic3r/BuildVolume.cpp index 213c4468d..216b61698 100644 --- a/src/libslic3r/BuildVolume.cpp +++ b/src/libslic3r/BuildVolume.cpp @@ -4,6 +4,8 @@ #include "GCode/GCodeProcessor.hpp" #include "Point.hpp" +#include + namespace Slic3r { BuildVolume::BuildVolume(const std::vector &bed_shape, const double max_print_height) : m_bed_shape(bed_shape), m_max_print_height(max_print_height) diff --git a/src/libslic3r/BuildVolume.hpp b/src/libslic3r/BuildVolume.hpp index 39e994f00..ff3041eb7 100644 --- a/src/libslic3r/BuildVolume.hpp +++ b/src/libslic3r/BuildVolume.hpp @@ -3,6 +3,9 @@ #include "Point.hpp" #include "Geometry/Circle.hpp" +#include "Polygon.hpp" +#include "BoundingBox.hpp" +#include #include @@ -49,7 +52,7 @@ public: const BoundingBox& bounding_box() const { return m_bbox; } // Bounding volume of bed_shape(), max_print_height(), unscaled. const BoundingBoxf3& bounding_volume() const { return m_bboxf; } - BoundingBoxf bounding_volume2d() const { return { to_2d(m_bboxf.min), to_2d(m_bboxf.max) }; }; + BoundingBoxf bounding_volume2d() const { return { to_2d(m_bboxf.min), to_2d(m_bboxf.max) }; } // Center of the print bed, unscaled. Vec2d bed_center() const { return to_2d(m_bboxf.center()); } diff --git a/src/libslic3r/ExPolygonCollection.cpp b/src/libslic3r/ExPolygonCollection.cpp index 1359c799a..a0de8f6de 100644 --- a/src/libslic3r/ExPolygonCollection.cpp +++ b/src/libslic3r/ExPolygonCollection.cpp @@ -1,5 +1,6 @@ #include "ExPolygonCollection.hpp" #include "Geometry/ConvexHull.hpp" +#include "BoundingBox.hpp" namespace Slic3r { diff --git a/src/libslic3r/Geometry/ConvexHull.cpp b/src/libslic3r/Geometry/ConvexHull.cpp index 80b417e61..b1ff77f80 100644 --- a/src/libslic3r/Geometry/ConvexHull.cpp +++ b/src/libslic3r/Geometry/ConvexHull.cpp @@ -1,5 +1,6 @@ #include "libslic3r.h" #include "ConvexHull.hpp" +#include "BoundingBox.hpp" #include