From c1b8783df5bb6c0dc9fd904c217774e2474b99be Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 13 Feb 2014 18:20:36 +0000 Subject: [PATCH] catch --- Mesh/meshGRegion.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Mesh/meshGRegion.cpp b/Mesh/meshGRegion.cpp index 551a1b1718..093efc8698 100644 --- a/Mesh/meshGRegion.cpp +++ b/Mesh/meshGRegion.cpp @@ -1309,9 +1309,14 @@ void MeshDelaunayVolume(std::vector<GRegion*> ®ions) } gr->set(allFaces); - meshGRegionBoundaryRecovery *init = new meshGRegionBoundaryRecovery(); - init->reconstructmesh(gr); - delete init; + try{ + meshGRegionBoundaryRecovery *init = new meshGRegionBoundaryRecovery(); + init->reconstructmesh(gr); + delete init; + } + catch(int err){ + Msg::Error("Could not recover boundary: error %d", err); + } // sort triangles in all model faces in order to be able to search in vectors std::list<GFace*>::iterator itf = allFaces.begin(); -- GitLab