PAL20497 4.x Computation of the mesh via attached script is failed.
protect from eexceptions in BRepMesh_IncrementalMesh
This commit is contained in:
parent
aeb8ca86d1
commit
3c52f8fa35
@ -51,6 +51,7 @@
|
|||||||
#include <OSD_File.hxx>
|
#include <OSD_File.hxx>
|
||||||
#include <TCollection_AsciiString.hxx>
|
#include <TCollection_AsciiString.hxx>
|
||||||
#include <TopTools_ListIteratorOfListOfShape.hxx>
|
#include <TopTools_ListIteratorOfListOfShape.hxx>
|
||||||
|
#include <Standard_ErrorHandler.hxx>
|
||||||
|
|
||||||
// Netgen include files
|
// Netgen include files
|
||||||
namespace nglib {
|
namespace nglib {
|
||||||
@ -198,7 +199,13 @@ void NETGENPlugin_Mesher::PrepareOCCgeometry(netgen::OCCGeometry& occgeo,
|
|||||||
list< SMESH_subMesh* > * meshedSM)
|
list< SMESH_subMesh* > * meshedSM)
|
||||||
{
|
{
|
||||||
BRepTools::Clean (shape);
|
BRepTools::Clean (shape);
|
||||||
BRepMesh_IncrementalMesh::BRepMesh_IncrementalMesh (shape, 0.01, true);
|
try {
|
||||||
|
#if (OCC_VERSION_MAJOR << 16 | OCC_VERSION_MINOR << 8 | OCC_VERSION_MAINTENANCE) > 0x060100
|
||||||
|
OCC_CATCH_SIGNALS;
|
||||||
|
#endif
|
||||||
|
BRepMesh_IncrementalMesh::BRepMesh_IncrementalMesh (shape, 0.01, true);
|
||||||
|
} catch (Standard_Failure) {
|
||||||
|
}
|
||||||
Bnd_Box bb;
|
Bnd_Box bb;
|
||||||
BRepBndLib::Add (shape, bb);
|
BRepBndLib::Add (shape, bb);
|
||||||
double x1,y1,z1,x2,y2,z2;
|
double x1,y1,z1,x2,y2,z2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user