From 7a5a26b77a2c0bc2bfdd002db319cc8552963bfc Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 27 Jan 2017 19:24:54 +0300 Subject: [PATCH] Decrease default min size since OCCT triangulation became coarser Regression was SALOME_TESTS/Grids/smesh/3D_mesh_NETGEN_03/D7 where change of fineness did not influence the mesh since minh was too high --- src/GUI/NETGENPlugin_msg_en.ts | 2 +- src/NETGENPlugin/NETGENPlugin_Mesher.cxx | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/GUI/NETGENPlugin_msg_en.ts b/src/GUI/NETGENPlugin_msg_en.ts index 478cc25..139fb85 100644 --- a/src/GUI/NETGENPlugin_msg_en.ts +++ b/src/GUI/NETGENPlugin_msg_en.ts @@ -161,7 +161,7 @@ NETGEN_LSZ_FILE - Fichier de taille du maillage + Mesh-size File diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index ecf18ad..fc8705f 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -808,7 +808,7 @@ double NETGENPlugin_Mesher::GetDefaultMinSize(const TopoDS_Shape& geom, } else { - minh = 3 * sqrt( minh ); // triangulation for visualization is rather fine + minh = sqrt( minh ); // triangulation for visualization is rather fine //cout << "TRIANGULATION minh = " < 0.5 * maxSize ) @@ -2503,8 +2503,6 @@ bool NETGENPlugin_Mesher::Compute() SMESH_MesherHelper quadHelper( *_mesh ); quadHelper.SetIsQuadratic( mparams.secondorder ); - static string debugFile = "/tmp/ngMesh.py"; /* to call toPython( _ngMesh, debugFile ) - while debugging netgen */ // ------------------------- // Prepare OCC geometry // ------------------------- @@ -3492,7 +3490,7 @@ void NETGENPlugin_Mesher::toPython( const netgen::Mesh* ngMesh ) ofstream outfile( pyFile, ios::out ); if ( !outfile ) return; - outfile << "import SMESH" << endl + outfile << "import salome, SMESH" << endl << "from salome.smesh import smeshBuilder" << endl << "smesh = smeshBuilder.New(salome.myStudy)" << endl << "mesh = smesh.Mesh()" << endl << endl; -- 2.39.2