Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
26f9395
)
Fix to store groups of meshes also
V7_siman
Delivery_V1_0_2013_07_12
author
mpv
<mpv@opencascade.com>
Fri, 31 May 2013 06:35:28 +0000
(06:35 +0000)
committer
mpv
<mpv@opencascade.com>
Fri, 31 May 2013 06:35:28 +0000
(06:35 +0000)
src/SMESH_I/SMESH_Gen_i.cxx
patch
|
blob
|
history
diff --git
a/src/SMESH_I/SMESH_Gen_i.cxx
b/src/SMESH_I/SMESH_Gen_i.cxx
index fe451a0628e306642e1187acc6361e7e593953c7..86186c093fe78e8028cd355d43e59c28d2a7a8f9 100644
(file)
--- 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";
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
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<SMESH_Mesh_i*>(GetServant(aCORBAMesh).in());
if (myImpl) {
myImpl->Load();
SMESH_Mesh_i* myImpl = dynamic_cast<SMESH_Mesh_i*>(GetServant(aCORBAMesh).in());
if (myImpl) {
myImpl->Load();
+ SMESH_Mesh& aMesh = myImpl->GetImpl();
CORBA::String_var objName = aSO->GetName();
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 "<<objName.in());
- }
+ aMesh.ExportMED(aFullPath.c_str(), objName.in(), false, MED::eV2_2, 0);
+ aNumMeshes++;
}
}
}
}
}
}