diff -rupN gmsh-2.9.0-source/Mesh/meshGRegion.cpp gmsh-2.9.0-source-new/Mesh/meshGRegion.cpp
--- gmsh-2.9.0-source/Mesh/meshGRegion.cpp 2015-03-08 14:03:14.000000000 +0100
+++ gmsh-2.9.0-source-new/Mesh/meshGRegion.cpp 2015-03-14 00:40:04.389714746 +0100
@@ -1157,7 +1157,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");
@@ -1219,14 +1221,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");