mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-18 02:45:56 +08:00
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:
parent
394f245f5b
commit
34139a5d9d
@ -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;
|
||||
|
@ -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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user