fix meshing empty meshes

This commit is contained in:
Matthias Hochsteger 2021-06-14 10:09:49 +02:00
parent 167df9feb9
commit a51f8ed307

View File

@ -315,6 +315,9 @@ namespace netgen
throw NgException ("Stop meshing since boundary mesh is overlapping"); throw NgException ("Stop meshing since boundary mesh is overlapping");
if(mesh3d.GetNDomains()==0)
return MESHING3_OK;
Array<Mesh> meshes(mesh3d.GetNDomains()-1); Array<Mesh> meshes(mesh3d.GetNDomains()-1);
auto first_new_pi = mesh3d.Points().Range().Next(); auto first_new_pi = mesh3d.Points().Range().Next();