Blob Blame History Raw
diff -rupN gmsh-2.10.1-source/Mesh/meshGRegion.cpp gmsh-2.10.1-source-new/Mesh/meshGRegion.cpp
--- gmsh-2.10.1-source/Mesh/meshGRegion.cpp	2015-04-18 09:33:20.000000000 +0200
+++ gmsh-2.10.1-source-new/Mesh/meshGRegion.cpp	2015-08-08 01:53:31.415377125 +0200
@@ -1171,7 +1171,9 @@ bool CreateAnEmptyVolumeMesh(GRegion *gr
 	  (Msg::GetVerbosity() < 3) ? "Q" : (Msg::GetVerbosity() > 6) ? "V" : "",
           CTX::instance()->mesh.toleranceInitialDelaunay);
   try{
-    tetrahedralize(opts, &in, &out);
+    tetgenbehavior behaviour;
+    behaviour.parse_commandline(opts);
+    tetrahedralize(&behaviour, &in, &out);
   }
   catch (int error){
     Msg::Error("Self intersecting surface mesh");
@@ -1233,14 +1235,18 @@ void MeshDelaunayVolumeTetgen(std::vecto
             (Msg::GetVerbosity() < 3) ? "Q" : (Msg::GetVerbosity() > 6) ? "V" : "",
             CTX::instance()->mesh.toleranceInitialDelaunay);
     try{
-      tetrahedralize(opts, &in, &out);
+      tetgenbehavior behaviour;
+      behaviour.parse_commandline(opts);
+      tetrahedralize(&behaviour, &in, &out);
     }
     catch (int error){
       Msg::Error("Self intersecting surface mesh, computing intersections "
                  "(this could take a while)");
       sprintf(opts, "dV");
       try{
-        tetrahedralize(opts, &in, &out);
+        tetgenbehavior behaviour;
+        behaviour.parse_commandline(opts);
+        tetrahedralize(&behaviour, &in, &out);
         Msg::Info("%d intersecting faces have been saved into 'intersect.pos'",
                   out.numberoftrifaces);
         FILE *fp = Fopen("intersect.pos", "w");