/// <summary> /// Wait at most `time' seconds for user interface events and return. If `time' /// < 0, wait indefinitely. First automatically create the user interface if it /// has not yet been initialized. Can only be called in the main thread. /// </summary> public static void Wait(double time = -1) { Gmsh_Warp.GmshFltkWait(time, ref Gmsh._staticreff); Gmsh.CheckException(MethodBase.GetCurrentMethod().MethodHandle); }