Merge branch 'throw_if_unbounded_domain' into 'master'

throw exception if surface triangulation cannot be built by occ

See merge request ngsolve/netgen!630
This commit is contained in:
Schöberl, Joachim 2024-02-13 10:07:53 +01:00
commit 07fb5d698e

View File

@ -669,6 +669,8 @@ namespace netgen
BRepMesh_IncrementalMesh (geom.shape, 0.01, true);
triangulation = BRep_Tool::Triangulation (face, loc);
}
if(triangulation.IsNull())
throw Exception("OCC-Triangulation could not be built. Do you have a bounded shape?");
BRepAdaptor_Surface sf(face, Standard_True);
// one prop for evaluating and one for derivatives