Commit 0ce61dd3 by Wendy Merks-Swolfs

Issue error in case of warning if invalid cavities have been found and catch…

Issue error in case of warning if invalid cavities have been found and catch this error to avoid boundary vertices not being part of the Delaunay tet mesh being used to recover the boundary. This will crash Gmsh!
parent 7b9bdf17
Pipeline #922 passed with stage
in 16 minutes 49 seconds
......@@ -1340,7 +1340,7 @@ void delaunayTrgl (const unsigned int numThreads,
}
}
if (invalidCavities[0])Msg::Warning("%d invalid cavities",invalidCavities[0]);
if (invalidCavities[0])Msg::Error("%d invalid cavities",invalidCavities[0]);
#if defined(_VERBOSE)
printf("average searches per point %12.5E\n",totSearchGlob/Npts);
......
......@@ -158,6 +158,7 @@ bool tetgenmesh::reconstructmesh(void *p)
std::vector<MTetrahedron*> tets;
delaunayMeshIn3D(_vertices, tets, false);
if (Msg::GetErrorCount()) return false;
Msg::Debug("Points have been tetrahedralized");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment