mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 05:10:34 +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);
|
BRepMesh_IncrementalMesh (geom.shape, 0.01, true);
|
||||||
triangulation = BRep_Tool::Triangulation (face, loc);
|
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);
|
BRepAdaptor_Surface sf(face, Standard_True);
|
||||||
// one prop for evaluating and one for derivatives
|
// one prop for evaluating and one for derivatives
|
||||||
|
Loading…
Reference in New Issue
Block a user