From e7a4693ceca4afe69595f527f2718d010d7fe9f8 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 14 Feb 2007 12:31:15 +0000
Subject: [PATCH] use the 3D Delaunay by default (if tetgen is available)

---
 Common/DefaultOptions.h | 7 ++++++-
 doc/VERSIONS            | 7 ++++---
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/Common/DefaultOptions.h b/Common/DefaultOptions.h
index d2b93c38df..dc2bf1212b 100644
--- a/Common/DefaultOptions.h
+++ b/Common/DefaultOptions.h
@@ -853,7 +853,12 @@ StringXNumber GeometryOptions_Number[] = {
 StringXNumber MeshOptions_Number[] = {
   { F|O, "Algorithm" , opt_mesh_algo2d , ALGO_2D_MESHADAPT ,
     "2D mesh algorithm (1=meshadapt, 2=delaunay)" }, 
-  { F|O, "Algorithm3D" , opt_mesh_algo3d , ALGO_3D_NETGEN ,
+  { F|O, "Algorithm3D" , opt_mesh_algo3d , 
+#if defined(HAVE_TETGEN)
+    ALGO_3D_DELAUNAY ,
+#else
+    ALGO_3D_NETGEN ,
+#endif
     "3D mesh algorithm (1=delaunay, 4=netgen, 5=tetgen)" }, 
   { F|O, "AngleSmoothNormals" , opt_mesh_angle_smooth_normals , 30.0 ,
     "Threshold angle below which normals are not smoothed" }, 
diff --git a/doc/VERSIONS b/doc/VERSIONS
index dc4ad8478a..8a2a3075b8 100644
--- a/doc/VERSIONS
+++ b/doc/VERSIONS
@@ -1,7 +1,8 @@
-$Id: VERSIONS,v 1.376 2007-02-13 07:51:48 geuzaine Exp $
+$Id: VERSIONS,v 1.377 2007-02-14 12:31:15 geuzaine Exp $
 
-since 2.0: volumes can now be defined from external CAD surfaces;
-fixed various small bugs.
+since 2.0: volumes can now be defined from external CAD surfaces; use
+Delaunay/Tetgen algorithm by default when available; fixed various
+small bugs.
 
 2.0 (February 5, 2007): new geometry and mesh databases, with support
 for STEP and IGES import via OpenCascade; complete rewrite of geometry
-- 
GitLab