Salome HOME
issue 0020959: HEXA_3D fails on shell
authoreap <eap@opencascade.com>
Wed, 22 Sep 2010 11:41:25 +0000 (11:41 +0000)
committereap <eap@opencascade.com>
Wed, 22 Sep 2010 11:41:25 +0000 (11:41 +0000)
   Fix DependsOn() for a not-closed SHELL not in SOLID

src/SMESH/SMESH_subMesh.cxx

index d4a8772cfe37cf6ad27fb1371f4d9da3630951bb..91993b332b20909e3ac94d19b202711be3e1e6b0 100644 (file)
@@ -381,8 +381,8 @@ const map < int, SMESH_subMesh * >& SMESH_subMesh::DependsOn()
         if ( BRep_Tool::IsClosed(exp.Current() ))
           InsertDependence(exp.Current());      //only shell not in solid
         else
-          for (TopExp_Explorer exp(exp.Current(), TopAbs_FACE); exp.More();exp.Next())
-            InsertDependence(exp.Current());      // issue 0020959: HEXA_3D fails on shell
+          for (TopExp_Explorer expF(exp.Current(), TopAbs_FACE); expF.More();expF.Next())
+            InsertDependence(expF.Current());    // issue 0020959: HEXA_3D fails on shell
 
       }
       for (TopExp_Explorer exp(_subShape, TopAbs_FACE, TopAbs_SHELL); exp.More();exp.Next())