diff --git a/libsrc/csg/edgeflw.cpp b/libsrc/csg/edgeflw.cpp index d89e2fd9..644d2cfa 100644 --- a/libsrc/csg/edgeflw.cpp +++ b/libsrc/csg/edgeflw.cpp @@ -1255,6 +1255,9 @@ namespace netgen *testout << "Refsegments, before delete: " << endl << refedges << endl; *testout << "inv: " << endl << refedgesinv << endl; } + + if(refedges.Size() == 0) + throw Exception("No edges found, something wrong."); NgBitArray todelete(refedges.Size()); todelete.Clear();