From: eap Date: Fri, 28 Jan 2011 10:29:23 +0000 (+0000) Subject: 0021123: EDF 1734 SMESH: Bug with propagation hypothesis X-Git-Tag: StartingPortingMED3~99 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ab928f3773f807234e1609822fd81f3ca3720d39;p=modules%2Fsmesh.git 0021123: EDF 1734 SMESH: Bug with propagation hypothesis --- diff --git a/src/StdMeshers/StdMeshers_Propagation.cxx b/src/StdMeshers/StdMeshers_Propagation.cxx index 481803839..6253dc270 100644 --- a/src/StdMeshers/StdMeshers_Propagation.cxx +++ b/src/StdMeshers/StdMeshers_Propagation.cxx @@ -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 {