ENH: add ConfigOptionPointsGroups

1.Add extruder printable area

jira:NONE

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I753344917a67e3d8ac361c15c3d374b5ef951d21
(cherry picked from commit 92fa0ff010f9ee8dee24f4c00b5217f92ecb04f6)
This commit is contained in:
xun.zhang
2024-08-23 15:29:15 +08:00
committed by Noisyfox
parent cd321f1711
commit 4f42d6bd8e
6 changed files with 194 additions and 33 deletions

View File

@@ -617,6 +617,21 @@ static bool apply(T &val, const MinMax<T> &limit)
} // namespace Slic3r
// requseted by ConfigOptionPointsGroups
namespace std {
template<>
struct hash<Slic3r::Vec2ds> {
size_t operator()(const Slic3r::Vec2ds& vec) {
size_t seed = 0;
for (const auto& element : vec) {
seed ^= std::hash<double>()(element[0]) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
seed ^= std::hash<double>()(element[1]) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
}
return seed;
}
};
}
// start Boost
#include <boost/version.hpp>
#include <boost/polygon/polygon.hpp>