|
| | FaceHash (const indexed_triangle_set &its) |
| bool | find (const std::string &key) |
|
| std::unordered_set< std::string > | facehash |
◆ FaceHash()
| Slic3r::FaceHash::FaceHash |
( |
const indexed_triangle_set & | its | ) |
|
|
inline |
235 {
236 for (
const Vec3i32 &face : its.indices)
238 }
Eigen::Matrix< int32_t, 3, 1, Eigen::DontAlign > Vec3i32
Definition Point.hpp:59
static std::string facekey(const Vec3i32 &face, const std::vector< Vec3f > &vertices)
Definition SLAPrintSteps.cpp:215
std::unordered_set< std::string > facehash
Definition SLAPrintSteps.cpp:182
References facehash, and facekey().
◆ facekey()
| std::string Slic3r::FaceHash::facekey |
( |
const Vec3i32 & | face, |
|
|
const std::vector< Vec3f > & | vertices ) |
|
inlinestatic |
216 {
217
218 std::array<Vec<3, int64_t>, 3> pts = {
222 };
223
224
225
226
229
230
232 }
BoundingBox scaled(const BoundingBoxf &bb)
Definition BoundingBox.hpp:284
Mat< N, 1, T > Vec
Definition Point.hpp:48
static std::string hash(const Vec< 3, int64_t > &v)
Definition SLAPrintSteps.cpp:204
References hash(), and Slic3r::scaled().
Referenced by FaceHash(), and Slic3r::create_exclude_mask().
◆ find()
| bool Slic3r::FaceHash::find |
( |
const std::string & | key | ) |
|
|
inline |
◆ hash()
| std::string Slic3r::FaceHash::hash |
( |
const Vec< 3, int64_t > & | v | ) |
|
|
inlinestatic |
205 {
206 std::string ret;
208
209 for (auto val : v)
211
212 return ret;
213 }
static std::array< char, MAX_NUM_CHARS+1 > to_chars(int64_t val)
Definition SLAPrintSteps.cpp:185
static constexpr size_t MAX_NUM_CHARS
Definition SLAPrintSteps.cpp:178
References MAX_NUM_CHARS, and to_chars().
Referenced by facekey().
◆ to_chars()
| std::array< char, MAX_NUM_CHARS+1 > Slic3r::FaceHash::to_chars |
( |
int64_t | val | ) |
|
|
inlinestatic |
186 {
187 std::array<char, MAX_NUM_CHARS + 1> ret;
188
189 static const constexpr char * Conv = "0123456789abcdef";
190
191 auto ptr = ret.begin();
192 auto uval = static_cast<uint64_t>(std::abs(val));
193 while (uval) {
194 *ptr = Conv[uval & 0xf];
195 ++ptr;
196 uval = uval >> 4;
197 }
198 if (val < 0) { *ptr = '-'; ++ptr; }
199 *ptr = '\0';
200
201 return ret;
202 }
Referenced by hash().
◆ facehash
| std::unordered_set<std::string> Slic3r::FaceHash::facehash |
◆ MAX_NUM_CHARS
| size_t Slic3r::FaceHash::MAX_NUM_CHARS = 16 |
|
staticconstexpr |
The documentation for this struct was generated from the following file: