Fix warning

../src/libslic3r/ShapeDiameterFunction.cpp:134:29: warning: unused variable 'granularity' [-Wunused-variable]
../src/libslic3r/ShapeDiameterFunction.cpp:408:67: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
../src/libslic3r/ShapeDiameterFunction.cpp:446:30: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
This commit is contained in:
Filip Sykala 2022-02-23 11:20:59 +01:00
parent 394f245f5b
commit 34139a5d9d
2 changed files with 1 additions and 2 deletions

View File

@ -405,7 +405,7 @@ indexed_triangle_set ShapeDiameterFunction::subdivide(
int index_offset = count_edge_vertices/2;
size_t i2 = (divide_index + 2) % 3;
if (count_edge_vertices % 2 == 0 && key_swap == l[i1] < l[i2]) {
if ((count_edge_vertices % 2 == 0) && (key_swap == (l[i1] < l[i2]))) {
--index_offset;
}
int sign = (vs.positive_order) ? 1 : -1;

View File

@ -809,7 +809,6 @@ void SimplifiableMesh<Mesh>::remove_small_edges(double edge_length, double max_t
// main iteration loop
int deleted_triangles = 0;
std::vector<bool> deleted0, deleted1;
size_t triangle_count = m_faceinfo.size();
// main reduction become on first iteration
for (int iteration = 0; iteration < 99; iteration++) {