mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
throw exception if surface triangulation cannot be built by occ
This commit is contained in:
parent
cee5d55b7d
commit
ddc50aa651
@ -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