|
| std::array< double, 10 > | q {} |
◆ add_plane()
| void Slic3r::TextureBake::anonymous_namespace{TextureBakeDecimate.cpp}::Quadric::add_plane |
( |
double | a, |
|
|
double | b, |
|
|
double | c, |
|
|
double | d ) |
|
inline |
31 {
32 q[0] += a * a;
q[1] += a * b;
q[2] += a * c;
q[3] += a * d;
33 q[4] += b * b;
q[5] += b * c;
q[6] += b * d;
34 q[7] += c * c;
q[8] += c * d;
36 }
std::array< double, 10 > q
Definition TextureBakeDecimate.cpp:28
References q.
◆ eval()
| double Slic3r::TextureBake::anonymous_namespace{TextureBakeDecimate.cpp}::Quadric::eval |
( |
double | x, |
|
|
double | y, |
|
|
double | z ) const |
|
inline |
43 {
44 return q[0] * x * x + 2 *
q[1] * x * y + 2 *
q[2] * x * z + 2 *
q[3] * x +
45 q[4] * y * y + 2 *
q[5] * y * z + 2 *
q[6] * y +
46 q[7] * z * z + 2 *
q[8] * z +
q[9];
47 }
References q.
◆ operator+=()
| void Slic3r::TextureBake::anonymous_namespace{TextureBakeDecimate.cpp}::Quadric::operator+= |
( |
const Quadric & | o | ) |
|
|
inline |
38 {
39 for (int i = 0; i < 10; ++i)
40 q[
size_t(i)] += o.q[size_t(i)];
41 }
References q.
| std::array<double, 10> Slic3r::TextureBake::anonymous_namespace{TextureBakeDecimate.cpp}::Quadric::q {} |
The documentation for this struct was generated from the following file: