From f4c706bb2afd7ee8428f17ad86162970b4614708 Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 31 May 2013 06:35:28 +0000 Subject: [PATCH] Fix to store groups of meshes also --- src/SMESH_I/SMESH_Gen_i.cxx | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index fe451a062..86186c093 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -5072,8 +5072,6 @@ Engines::ListOfData* SMESH_Gen_i::getModifiedData(CORBA::Long studyId) std::string aFullPath(Kernel_Utils::GetTmpFileName()); aFullPath += ".med"; - DriverMED_W_SMESHDS_Mesh aWriter; - aWriter.SetFile(aFullPath.c_str()); StudyContext* myStudyContext = GetCurrentStudyContext(); SALOMEDS::ChildIterator_var anIter = aStudy->NewChildIterator(aComponent); // check only published meshes @@ -5087,17 +5085,10 @@ Engines::ListOfData* SMESH_Gen_i::getModifiedData(CORBA::Long studyId) SMESH_Mesh_i* myImpl = dynamic_cast(GetServant(aCORBAMesh).in()); if (myImpl) { myImpl->Load(); + SMESH_Mesh& aMesh = myImpl->GetImpl(); CORBA::String_var objName = aSO->GetName(); - SMESHDS_Mesh* mySMESHDSMesh = myImpl->GetImpl().GetMeshDS(); - if (mySMESHDSMesh->NbNodes() > 0) { - // write mesh data to med file - aWriter.SetMesh(mySMESHDSMesh); - aWriter.SetMeshName(objName.in()); - aWriter.Perform(); - aNumMeshes++; - } else { - INFOS("Mesh has zero nodes and can not be exported "<