sroring the mesh name during checkin (GetModifiedData)

This commit is contained in:
bri 2013-04-18 08:12:22 +00:00
parent 61696c3ba9
commit 0925bd9c61

View File

@ -5086,13 +5086,15 @@ Engines::ListOfData* SMESH_Gen_i::getModifiedData(CORBA::Long studyId)
if(!aCORBAMesh->_is_nil()) { if(!aCORBAMesh->_is_nil()) {
SMESH_Mesh_i* myImpl = dynamic_cast<SMESH_Mesh_i*>(GetServant(aCORBAMesh).in()); SMESH_Mesh_i* myImpl = dynamic_cast<SMESH_Mesh_i*>(GetServant(aCORBAMesh).in());
if (myImpl) { if (myImpl) {
CORBA::String_var objStr = GetORB()->object_to_string(anObj); //CORBA::String_var objStr = GetORB()->object_to_string(anObj);
int id = myStudyContext->findId(string(objStr.in())); //int id = myStudyContext->findId(string(objStr.in()));
CORBA::String_var objName = aSO->GetName();
SMESHDS_Mesh* mySMESHDSMesh = myImpl->GetImpl().GetMeshDS(); SMESHDS_Mesh* mySMESHDSMesh = myImpl->GetImpl().GetMeshDS();
if (mySMESHDSMesh->NbNodes() > 0) { if (mySMESHDSMesh->NbNodes() > 0) {
// write mesh data to med file // write mesh data to med file
aWriter.SetMesh(mySMESHDSMesh); aWriter.SetMesh(mySMESHDSMesh);
aWriter.SetMeshId(id); //aWriter.SetMeshId(id);
aWriter.SetMeshName(objName.in());
aNumMeshes++; aNumMeshes++;
} else { } else {
MESSAGE("Mesh has zero nodes and can not be exported"); MESSAGE("Mesh has zero nodes and can not be exported");