mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-10 18:56:13 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user