fix
../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:
parent
ca848b0a14
commit
ab58e631ef
1 changed files with 0 additions and 6 deletions
|
@ -874,12 +874,6 @@ void priv::set_face_type(FaceTypeMap &face_type_map,
|
||||||
uint32_t i_to = shape_to.point_index;
|
uint32_t i_to = shape_to.point_index;
|
||||||
IntersectingElement::Type type_from = shape_from.get_type();
|
IntersectingElement::Type type_from = shape_from.get_type();
|
||||||
IntersectingElement::Type type_to = shape_to.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) {
|
if (i_from == i_to && type_from == type_to) {
|
||||||
// intersecting element must be face
|
// intersecting element must be face
|
||||||
assert(type_from == IntersectingElement::Type::face_1 ||
|
assert(type_from == IntersectingElement::Type::face_1 ||
|
||||||
|
|
Loading…
Reference in a new issue