diff -rupN gmsh-3.0.6-source/Mesh/meshGRegion.cpp gmsh-3.0.6-source-new/Mesh/meshGRegion.cpp
--- gmsh-3.0.6-source/Mesh/meshGRegion.cpp 2017-11-05 13:05:54.000000000 +0100
+++ gmsh-3.0.6-source-new/Mesh/meshGRegion.cpp 2018-03-10 10:28:44.773972079 +0100
@@ -513,7 +513,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");
@@ -583,14 +585,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");