diff --git a/src/libslic3r/BoostAdapter.hpp b/src/libslic3r/BoostAdapter.hpp index 3144ae201..36256213f 100644 --- a/src/libslic3r/BoostAdapter.hpp +++ b/src/libslic3r/BoostAdapter.hpp @@ -96,6 +96,36 @@ struct indexed_access { } }; +template using BB3 = Slic3r::BoundingBox3Base>; + +template struct tag> { + using type = box_tag; +}; + +template struct point_type> { + using type = Slic3r::Vec<3, T>; +}; + +template +struct indexed_access, 0, d> { + static inline coord_t get(BB3 const& box) { + return box.min(d); + } + static inline void set(BB3 &box, coord_t const& coord) { + box.min(d) = coord; + } +}; + +template +struct indexed_access, 1, d> { + static inline coord_t get(BB3 const& box) { + return box.max(d); + } + static inline void set(BB3 &box, coord_t const& coord) { + box.max(d) = coord; + } +}; + } }