From: isn Date: Tue, 24 Jan 2017 12:23:40 +0000 (+0300) Subject: refs #1103 X-Git-Tag: Salome_8_3_Hydro_1_1rc1~58^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e1681d729f4516b96d7c763da266627f09512999;p=modules%2Fhydro.git refs #1103 --- diff --git a/src/HYDROData/HYDROData_CalculationCase.cxx b/src/HYDROData/HYDROData_CalculationCase.cxx index 7f87d0c6..89fc176b 100644 --- a/src/HYDROData/HYDROData_CalculationCase.cxx +++ b/src/HYDROData/HYDROData_CalculationCase.cxx @@ -1161,7 +1161,7 @@ bool HYDROData_CalculationCase::Export( GEOM::GEOM_Gen_var const TopoDS_Shape& aShape = aShToName.FindKey(i); if ( aShape.IsNull() ) continue; - + SH2M.Bind(aShape, TopTools_ListOfShape()); TopTools_ListOfShape& LM = SH2M.ChangeFind(aShape); if ( aShape.ShapeType() == TopAbs_FACE || aShape.ShapeType() == TopAbs_SHELL ) @@ -1178,6 +1178,7 @@ bool HYDROData_CalculationCase::Export( GEOM::GEOM_Gen_var LM.Append(anExp.Current()); } anExp.Init( aShape, TopAbs_FACE, TopAbs_SHELL ); + for (; anExp.More(); anExp.Next() ) { aSewing.Add( anExp.Current() ); LM.Append(anExp.Current()); @@ -1212,8 +1213,7 @@ bool HYDROData_CalculationCase::Export( GEOM::GEOM_Gen_var #ifdef DEB_CALCULATION BRepTools::Write(aSewedShape ,"Sew.brep"); -#endif - // Publish the sewed shape +#endif // Publish the sewed shape QString aName = EXPORT_NAME; GEOM::GEOM_Object_ptr aMainShape = HYDROData_GeomTool::ExplodeShapeInGEOMandPublish( theGeomEngine, theStudy, aSewedShape, aFacesToNameModif, aName, theGeomObjEntry );