From 5da23d2445daa0d1630592d1ffd81ad5d1edf691 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 11 Jul 2007 16:55:11 +0000 Subject: [PATCH] add big warning for Delaunay algo --- Mesh/Generator.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Mesh/Generator.cpp b/Mesh/Generator.cpp index 9a5285a7a7..deaf6b72f4 100644 --- a/Mesh/Generator.cpp +++ b/Mesh/Generator.cpp @@ -1,4 +1,4 @@ -// $Id: Generator.cpp,v 1.119 2007-05-10 22:08:03 geuzaine Exp $ +// $Id: Generator.cpp,v 1.120 2007-07-11 16:55:11 geuzaine Exp $ // // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // @@ -216,6 +216,16 @@ void Mesh1D() void Mesh2D() { if(TooManyElements(2)) return; + + if(CTX.mesh.algo2d == ALGO_2D_DELAUNAY && !CTX.expert_mode){ + if(!GetBinaryAnswer("The 2D Delaunay algorithm is still highly experimental\n" + "and produces triangles with random orientations. Do you\n" + "really want to continue?\n\n" + "(To disable this warning in the future, select `Enable\n" + "expert mode' in the option dialog.)", + "Continue", "Cancel")) return; + } + Msg(STATUS1, "Meshing 2D..."); double t1 = Cpu(); -- GitLab