diff --git a/libsrc/meshing/meshfunc.cpp b/libsrc/meshing/meshfunc.cpp index 8bf85206..08f0b234 100644 --- a/libsrc/meshing/meshfunc.cpp +++ b/libsrc/meshing/meshfunc.cpp @@ -315,6 +315,9 @@ namespace netgen throw NgException ("Stop meshing since boundary mesh is overlapping"); + if(mesh3d.GetNDomains()==0) + return MESHING3_OK; + Array meshes(mesh3d.GetNDomains()-1); auto first_new_pi = mesh3d.Points().Range().Next();