Salome HOME
0021123: EDF 1734 SMESH: Bug with propagation hypothesis
authoreap <eap@opencascade.com>
Fri, 28 Jan 2011 10:29:23 +0000 (10:29 +0000)
committereap <eap@opencascade.com>
Fri, 28 Jan 2011 10:29:23 +0000 (10:29 +0000)
src/StdMeshers/StdMeshers_Propagation.cxx

index 481803839c1d28f16c71d32a8c11115c9e26afc9..6253dc27058eb449b9ae1dacd04fbe590fbdabdc 100644 (file)
@@ -268,7 +268,7 @@ namespace {
       for (; itA.More(); itA.Next())
       {
         // there are objects of different type among the ancestors of edge
-        if ( itA.Value().ShapeType() != TopAbs_WIRE || !checkedShapes.Add( itA.Value() ))
+        if ( itA.Value().ShapeType() != TopAbs_WIRE /*|| !checkedShapes.Add( itA.Value() )*/)
           continue;
 
         // Get ordered edges and find index of anE in a sequence
@@ -290,8 +290,7 @@ namespace {
           continue; // too few edges
         }
         else if ( edges.size() == 4 ) {
-          int oppIndex = edgeIndex + 2;
-          if ( oppIndex > 3 ) oppIndex -= 4;
+          int oppIndex = ( edgeIndex + 2 ) % 4;
           anOppE = edges[ oppIndex ];
         }
         else {