diff --git a/libsrc/meshing/bisect.cpp b/libsrc/meshing/bisect.cpp index 72bbd56a..9696fd81 100644 --- a/libsrc/meshing/bisect.cpp +++ b/libsrc/meshing/bisect.cpp @@ -1958,6 +1958,8 @@ namespace netgen const NgArray< NgArray* > & idmaps, const string & refinfofile) { + if (mesh.GetDimension() < 2) + throw Exception ("Mesh bisection is available in 2D and 3D"); // mtets.SetName ("bisection, tets"); // mprisms.SetName ("bisection, prisms"); // mtris.SetName ("bisection, trigs");