◆ hash()
| int HashEdge::hash |
( |
int |
M | ) |
const |
|
inline |
◆ load_exact()
55 {
56 {
58 float max_diff = std::max(
diff(0), std::max(
diff(1),
diff(2)));
60 }
61
62
63
65 } else {
66
67 std::swap(a, b);
69 }
72
73 for (size_t i = 0; i < 6; ++ i) {
74 unsigned char *p = (
unsigned char*)(this->
key + i);
75 #if BOOST_ENDIAN_LITTLE_BYTE
76 if (p[0] == 0 && p[1] == 0 && p[2] == 0 && p[3] == 0x80)
77
78 p[3] = 0;
79 #else
80 if (p[0] == 0x80 && p[1] == 0 && p[2] == 0 && p[3] == 0)
81
82 p[0] = 0;
83 #endif
84 }
85 }
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const CwiseAbsReturnType cwiseAbs() const
Definition MatrixCwiseUnaryOps.h:32
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar * data() const
Definition PlainObjectBase.h:255
Slic3r::Polygons diff(const Slic3r::Polygon &subject, const Slic3r::Polygon &clip, ApplySafetyOffset do_safety_offset)
Definition ClipperUtils.cpp:672
bool vertex_lower(const stl_vertex &a, const stl_vertex &b)
Definition connect.cpp:117
int which_edge
Definition connect.cpp:51
stl_stats stats
Definition stl.h:153
float shortest_edge
Definition stl.h:101
References cwiseAbs(), stl_stats::shortest_edge, stl_file::stats, and vertex_lower().
Referenced by stl_check_facets_exact(), and stl_fill_holes().
◆ load_nearby()
88 {
89
93 static_assert(
sizeof(
Vec3i) == 12,
"size of Vec3i incorrect");
94
95 if (vertex1 == vertex2)
96
97 return false;
98
99
100
101 if ((vertex1[0] != vertex2[0]) ?
102 (vertex1[0] < vertex2[0]) :
103 ((vertex1[1] != vertex2[1]) ?
104 (vertex1[1] < vertex2[1]) :
105 (vertex1[2] < vertex2[2]))) {
108 } else {
112 }
113 return true;
114 }
Eigen::Matrix< int, 3, 1, Eigen::DontAlign > Vec3i
Definition Point.hpp:40
stl_vertex min
Definition stl.h:98
__int32 int32_t
Definition unistd.h:75
References stl_stats::min, and stl_file::stats.
Referenced by stl_check_facets_nearby().
◆ operator!=()
44{ return ! (*this == rhs); }
◆ operator==()
43{
return memcmp(
key, rhs.
key,
sizeof(
key)) == 0; }
References key.
◆ vertex_lower()
117 {
118 return (
a(0) !=
b(0)) ? (
a(0) <
b(0)) :
119 ((
a(1) !=
b(1)) ? (
a(1) <
b(1)) : (
a(2) <
b(2)));
120 }
Referenced by load_exact().
◆ facet_number
| int HashEdge::facet_number |
◆ key
◆ next
◆ which_edge
The documentation for this struct was generated from the following file: