if(!aCORBAMesh->_is_nil()) {
SMESH_Mesh_i* myImpl = dynamic_cast<SMESH_Mesh_i*>(GetServant(aCORBAMesh).in());
if (myImpl) {
if(!aCORBAMesh->_is_nil()) {
SMESH_Mesh_i* myImpl = dynamic_cast<SMESH_Mesh_i*>(GetServant(aCORBAMesh).in());
if (myImpl) {
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);
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);
- if (aNumMeshes > 0) { // compund is correct, write it to the temporary file
- MESSAGE("Write "<<aNumMeshes<<" meshes to "<<aFullPath.c_str());
- aWriter.Perform();
+ if (aNumMeshes > 0) { // prepare a container to store files
+ INFOS("Write "<<aNumMeshes<<" meshes to "<<aFullPath.c_str());
aResult->length(1);
Engines::DataContainer_var aData = (new Engines_DataContainer_i(
aFullPath.c_str(), "", "", true))->_this();
aResult->length(1);
Engines::DataContainer_var aData = (new Engines_DataContainer_i(
aFullPath.c_str(), "", "", true))->_this();