]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix issue reported in https://www.salome-platform.org/forum/forum_10/180510604
authoreap <eap@opencascade.com>
Wed, 26 Feb 2020 09:02:38 +0000 (12:02 +0300)
committereap <eap@opencascade.com>
Wed, 26 Feb 2020 09:02:38 +0000 (12:02 +0300)
src/StdMeshers/StdMeshers_CompositeHexa_3D.cxx

index b0f10f8d0d174ec23abf4ef64c1425175b8cb0c5..666c4be2c8f83358b0a2024b3c9e61cacd1c5042 100644 (file)
@@ -420,9 +420,9 @@ namespace
                          const TopTools_MapOfShape& cornerVV,
                          TopTools_MapOfShape&       internEE)
   {
-    TopTools_IndexedMapOfShape subEE;
+    TopTools_IndexedMapOfShape subEE, subFF;
     TopExp::MapShapes( shape, TopAbs_EDGE, subEE );
-    //TopExp::MapShapes( shape, TopAbs_FACE, subFF );
+    TopExp::MapShapes( shape, TopAbs_FACE, subFF );
 
     TopoDS_Vertex VV[2];
     TopTools_MapOfShape subChecked, ridgeEE;
@@ -460,6 +460,8 @@ namespace
             {
               if ( !SMESH_MesherHelper::IsSubShape( ridgeE, *F ))
                 continue;
+              if ( !subFF.Contains( *F ))
+                continue;
               if ( isContinuousMesh( ridgeE, TopoDS::Edge( *E ), TopoDS::Face( *F ), mesh ))
               {
                 nextRidgeE = *E;