../src/libslic3r/CutSurface.cpp:879:72: warning: '&&' within '||' [-Wlogical-op-parentheses]
../src/libslic3r/CutSurface.cpp:880:72: warning: '&&' within '||' [-Wlogical-op-parentheses]
../src/libslic3r/CutSurface.cpp:881:72: warning: '&&' within '||' [-Wlogical-op-parentheses]
../src/libslic3r/CutSurface.cpp:877:22: warning: unused variable 'is_positive_type_direction' [-Wunused-variable]
This commit is contained in:
Filip Sykala 2022-05-25 09:10:29 +02:00
parent ca848b0a14
commit ab58e631ef

View File

@ -874,12 +874,6 @@ void priv::set_face_type(FaceTypeMap &face_type_map,
uint32_t i_to = shape_to.point_index;
IntersectingElement::Type type_from = shape_from.get_type();
IntersectingElement::Type type_to = shape_to.get_type();
auto is_positive_type_direction = [&type_from, &type_to]()->bool {
return
type_from == IntersectingElement::Type::edge_1 && type_to == IntersectingElement::Type::face_1 ||
type_from == IntersectingElement::Type::face_1 && type_to == IntersectingElement::Type::edge_2 ||
type_from == IntersectingElement::Type::edge_2 && type_to == IntersectingElement::Type::face_2 ;
};
if (i_from == i_to && type_from == type_to) {
// intersecting element must be face
assert(type_from == IntersectingElement::Type::face_1 ||