|
|
2f3a0d7 |
diff -rupN gmsh-3.0.6-source/Mesh/meshGRegion.cpp gmsh-3.0.6-source-new/Mesh/meshGRegion.cpp
|
|
|
2f3a0d7 |
--- gmsh-3.0.6-source/Mesh/meshGRegion.cpp 2017-11-05 13:05:54.000000000 +0100
|
|
|
2f3a0d7 |
+++ gmsh-3.0.6-source-new/Mesh/meshGRegion.cpp 2017-11-05 16:49:19.252093990 +0100
|
|
|
c9defa2 |
@@ -513,7 +513,9 @@ bool CreateAnEmptyVolumeMesh(GRegion *gr
|
|
|
ae811ac |
(Msg::GetVerbosity() < 3) ? "Q" : (Msg::GetVerbosity() > 6) ? "V" : "",
|
|
|
5dbec05 |
CTX::instance()->mesh.toleranceInitialDelaunay);
|
|
|
26afebd |
try{
|
|
|
26afebd |
- tetrahedralize(opts, &in, &out;;
|
|
|
5dbec05 |
+ tetgenbehavior behaviour;
|
|
|
5dbec05 |
+ behaviour.parse_commandline(opts);
|
|
|
26afebd |
+ tetrahedralize(&behaviour, &in, &out;;
|
|
|
26afebd |
}
|
|
|
26afebd |
catch (int error){
|
|
|
26afebd |
Msg::Error("Self intersecting surface mesh");
|
|
|
c9defa2 |
@@ -583,14 +585,18 @@ void MeshDelaunayVolumeTetgen(std::vecto
|
|
|
5dbec05 |
(Msg::GetVerbosity() < 3) ? "Q" : (Msg::GetVerbosity() > 6) ? "V" : "",
|
|
|
5dbec05 |
CTX::instance()->mesh.toleranceInitialDelaunay);
|
|
|
26afebd |
try{
|
|
|
26afebd |
- tetrahedralize(opts, &in, &out;;
|
|
|
5dbec05 |
+ tetgenbehavior behaviour;
|
|
|
5dbec05 |
+ behaviour.parse_commandline(opts);
|
|
|
26afebd |
+ tetrahedralize(&behaviour, &in, &out;;
|
|
|
26afebd |
}
|
|
|
26afebd |
catch (int error){
|
|
|
26afebd |
Msg::Error("Self intersecting surface mesh, computing intersections "
|
|
|
26afebd |
"(this could take a while)");
|
|
|
26afebd |
sprintf(opts, "dV");
|
|
|
26afebd |
try{
|
|
|
26afebd |
- tetrahedralize(opts, &in, &out;;
|
|
|
5dbec05 |
+ tetgenbehavior behaviour;
|
|
|
26afebd |
+ behaviour.parse_commandline(opts);
|
|
|
26afebd |
+ tetrahedralize(&behaviour, &in, &out;;
|
|
|
26afebd |
Msg::Info("%d intersecting faces have been saved into 'intersect.pos'",
|
|
|
26afebd |
out.numberoftrifaces);
|
|
|
26afebd |
FILE *fp = Fopen("intersect.pos", "w");
|