Salome HOME
Groups for export corrected.
authoradv <adv@opencascade.com>
Wed, 29 Jan 2014 06:40:15 +0000 (06:40 +0000)
committeradv <adv@opencascade.com>
Wed, 29 Jan 2014 06:40:15 +0000 (06:40 +0000)
src/HYDROData/HYDROData_CalculationCase.cxx

index a418024d6f5c685a090fa941453d3227fad02b8d..8498732a85d611bef94a1951a8f72e4be3652e66 100644 (file)
@@ -828,9 +828,12 @@ bool HYDROData_CalculationCase::Export( GEOM::GEOM_Gen_var
 #ifdef DEB_CALCULATION
       cout << "\nOld shape(" << i << ") = " << aShape.TShape() <<endl;
 #endif
 #ifdef DEB_CALCULATION
       cout << "\nOld shape(" << i << ") = " << aShape.TShape() <<endl;
 #endif
-      const TopoDS_Shape& aModifiedShape = aSewing.Modified( aShape );
-      if ( aModifiedShape.IsNull() )
-        continue;
+      
+      TopoDS_Shape aModifiedShape = aShape;
+      if ( aSewing.IsModified( aShape ) )
+        aModifiedShape = aSewing.Modified( aShape );
+      else if ( aSewing.IsModifiedSubShape( aShape ) )
+        aModifiedShape = aSewing.ModifiedSubShape( aShape );
 
 #ifdef DEB_CALCULATION
       const TopLoc_Location& aL1 = aShape.Location();
 
 #ifdef DEB_CALCULATION
       const TopLoc_Location& aL1 = aShape.Location();