#include "GHS3DPlugin_GHS3D.hxx"
#include "SMESH_Gen.hxx"
#include "SMESH_Mesh.hxx"
+#include "SMESH_Comment.hxx"
#include "SMDS_MeshElement.hxx"
#include "SMDS_MeshNode.hxx"
#else
aFacesFile.rdbuf()->is_open() && aPointsFile.rdbuf()->is_open();
#endif
+
if (!Ok)
- {
- INFOS( "Can't write into " << aTmpDir.ToCString());
- return false;
- }
+ return error(dfltErr(), SMESH_Comment("Can't write into ") << aTmpDir.ToCString());
+
map <int,int> aSmdsToGhs3dIdMap;
map <int,const SMDS_MeshNode*> aGhs3dIdToNodeMap;
OSD_File( aFacesFileName ).Remove();
OSD_File( aPointsFileName ).Remove();
}
- return false;
+ return error(COMPERR_BAD_INPUT_MESH);
}
// -----------------
fclose(aResultFile);
}
else
- Ok = false;
+ {
+ Ok = error(dfltErr(), "Problem with launching ghs3d");
+ }
// ---------------------
// remove working files
OSD_File( aLogFileName ).Remove();
}
else if ( OSD_File( aLogFileName ).Size() > 0 ) {
- INFOS( "GHS3D Error: see " << aLogFileName.ToCString() );
+ Ok = error(dfltErr(), SMESH_Comment("See ")<< aLogFileName.ToCString() );
}
else {
OSD_File( aLogFileName ).Remove();
- INFOS( "GHS3D Error: command '" << cmd.ToCString() << "' failed" );
}
if ( !getenv("GHS3D_KEEP_FILES") )