mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
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:
commit
07fb5d698e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user