throw exception if surface triangulation cannot be built by occ

This commit is contained in:
Christopher Lackner 2024-02-13 09:33:12 +01:00
parent cee5d55b7d
commit ddc50aa651

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