From ff1f95280aba10d302adbb1e1fd8359b5bef50e4 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 26 Aug 2016 20:26:35 +0300 Subject: [PATCH] 23324: REGRESSION: SMESH: Failure to mesh a geometry with MG-Tetra algo. --- src/GHS3DPlugin/MG_Tetra_API.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/GHS3DPlugin/MG_Tetra_API.cxx b/src/GHS3DPlugin/MG_Tetra_API.cxx index 7b2c5a8..37a979d 100644 --- a/src/GHS3DPlugin/MG_Tetra_API.cxx +++ b/src/GHS3DPlugin/MG_Tetra_API.cxx @@ -634,10 +634,11 @@ bool MG_Tetra_API::LibData::Compute() if (ret != STATUS_OK) MG_Error( "unable to get resulting mesh"); ////////////////////////////////////////////////////////////////////////////////////////// - // file = "/tmp/ghs3d_OUT.mesh"; - // mesh_write_mesh( _tetra_mesh,file); - // std::cout << std::endl << std::endl << "Write " << file << std::endl << std::endl << std::endl; - + // { + // const char* file = "/tmp/ghs3d_OUT.mesh"; + // mesh_write_mesh( _tetra_mesh,file); + // std::cout << std::endl << std::endl << "Write " << file << std::endl << std::endl << std::endl; + // } return true; } @@ -734,6 +735,8 @@ bool MG_Tetra_API::Compute( const std::string& cmdLine, std::string& errStr ) value = ""; while ( i+1 < args.size() && args[i+1][0] != '-' ) { + if ( strncmp( "1>", args[i+1].c_str(), 2 ) == 0 ) + break; if ( !value.empty() ) value += " "; value += args[++i]; } -- 2.39.2