mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-26 01:37:54 +05:00
sroring the mesh name during checkin (GetModifiedData)
This commit is contained in:
parent
61696c3ba9
commit
0925bd9c61
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user