Skip to content
Snippets Groups Projects
Commit 1ba81617 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

throw exception instead of assert() when meshes overlap

parent d2560e04
No related branches found
No related tags found
No related merge requests found
...@@ -22503,7 +22503,9 @@ void tetgenmesh::rearrangesubfaces(list* missingshlist, list* boundedgelist, ...@@ -22503,7 +22503,9 @@ void tetgenmesh::rearrangesubfaces(list* missingshlist, list* boundedgelist,
} }
} }
} while (hitbdry < 2 && apex(spintet) != apex(starttet)); } while (hitbdry < 2 && apex(spintet) != apex(starttet));
#ifdef SELF_CHECK //GMSH
assert(matchflag == true); assert(matchflag == true);
#endif //GMSH
tspivot(spintet, neighsh); tspivot(spintet, neighsh);
if (neighsh.sh != dummysh) { if (neighsh.sh != dummysh) {
printf("Error: Invalid PLC.\n"); printf("Error: Invalid PLC.\n");
...@@ -22511,7 +22513,8 @@ void tetgenmesh::rearrangesubfaces(list* missingshlist, list* boundedgelist, ...@@ -22511,7 +22513,8 @@ void tetgenmesh::rearrangesubfaces(list* missingshlist, list* boundedgelist,
shellmark(neighsh), shellmark(shloop)); shellmark(neighsh), shellmark(shloop));
printf(" It might be caused by a facet is defined more than once.\n"); printf(" It might be caused by a facet is defined more than once.\n");
printf(" Hint: Use -d switch to find all overlapping facets.\n"); printf(" Hint: Use -d switch to find all overlapping facets.\n");
exit(1); terminatetetgen(1);
//GMSH exit(1);
} }
// The side of 'spintet' is at which a new subface will be attached. // The side of 'spintet' is at which a new subface will be attached.
adjustedgering(spintet, CCW); adjustedgering(spintet, CCW);
?: new client/server visualization mode; compound geometrical 2.4.3 (?): new client/server visualization mode; new option to force
entities; new option to force the type of views dynamically; bug the type of views dynamically; small bug fixes and usability
fixes. improvements.
2.4.2 (Sep 21, 2009): solver code refactoring + better IDE 2.4.2 (Sep 21, 2009): solver code refactoring + better IDE
integration. integration.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment