From: eap Date: Fri, 15 Nov 2013 10:36:37 +0000 (+0000) Subject: 22401: [CEA 992] Regression on SMESH using NETGEN 2D X-Git-Tag: V7_3_0a1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=293fc4dc1246a8375937c44aacee63d44fa6d203;p=plugins%2Fnetgenplugin.git 22401: [CEA 992] Regression on SMESH using NETGEN 2D Change default grading "Very Coarse" -> "Coarse" --- diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx index ac4cf49..31b8aba 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx @@ -255,7 +255,7 @@ bool NETGENPlugin_NETGEN_2D_ONLY::Compute(SMESH_Mesh& aMesh, netgen::mparam.maxh = edgeLength; netgen::mparam.minh = aMesher.GetDefaultMinSize( aShape, netgen::mparam.maxh ); netgen::mparam.quad = _hypQuadranglePreference ? 1 : 0; - netgen::mparam.grading = 0.7; // very coarse mesh by default + netgen::mparam.grading = 0.5; // coarse mesh by default } occgeo.face_maxh = netgen::mparam.maxh; @@ -302,7 +302,8 @@ bool NETGENPlugin_NETGEN_2D_ONLY::Compute(SMESH_Mesh& aMesh, for ( int iE = 1; iE <= edgeMap.Extent(); ++iE ) { const TopoDS_Shape& edge = edgeMap( iE ); - if ( SMESH_Algo::isDegenerated( TopoDS::Edge( edge ))) + if ( SMESH_Algo::isDegenerated( TopoDS::Edge( edge )) || + helper.IsSubShape( edge, aShape )) continue; SMESHDS_SubMesh* smDS = aMesh.GetMeshDS()->MeshElements( edge ); if ( !smDS ) continue;