#include <TopExp_Explorer.hxx>
#include <TopoDS.hxx>
+#include <Standard_Failure.hxx>
+#include <Standard_ErrorHandler.hxx>
+
#include "utilities.h"
#include <list>
Ng_Result status;
try {
+#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
+ OCC_CATCH_SIGNALS;
+#endif
status = Ng_GenerateVolumeMesh(Netgen_mesh, &Netgen_param);
}
+ catch (Standard_Failure& exc) {
+ error(COMPERR_OCC_EXCEPTION, exc.GetMessageString());
+ status = NG_VOLUME_FAILURE;
+ }
catch (...) {
- MESSAGE("An exception has been caught during the Volume Mesh Generation ...");
error(dfltErr(), "Exception in Ng_GenerateVolumeMesh()");
status = NG_VOLUME_FAILURE;
}