From: eap Date: Thu, 30 Jun 2011 13:32:04 +0000 (+0000) Subject: IPAL21957: Max Element Area does not influence on resulting mesh for Triangle Mefisto X-Git-Tag: V6_3_1rc1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=353134d557032bb42e9174b77e647a20c488ca7f;p=modules%2Fsmesh.git IPAL21957: Max Element Area does not influence on resulting mesh for Triangle Mefisto Partially restore "protection contre une arete max desiree trop grande ou trop petite": max size has been limited to make pass /bugs/S1 non-regression test (NETGEN failes starting from the mesh made by MEFISTO) --- diff --git a/src/MEFISTO2/aptrte.cxx b/src/MEFISTO2/aptrte.cxx index aa5ff172d..7ffd34dba 100755 --- a/src/MEFISTO2/aptrte.cxx +++ b/src/MEFISTO2/aptrte.cxx @@ -345,9 +345,11 @@ void aptrte( Z nutysu, R aretmx, // devenu un commentaire aretmx = Min( aretmx, aremax ); //pour homogeneiser // protection contre une arete max desiree trop grande ou trop petite -// if( aretmx > aremax*2.05 ) aretmx = aremax; + //if( aretmx > aremax*2.05 ) aretmx = aremax; +#define _MAXFACT 4.05 + if( aretmx > aremin*_MAXFACT ) aretmx = aremin*_MAXFACT; -// // protection contre une arete max desiree trop petite + // protection contre une arete max desiree trop petite // if( (aremax-aremin) > (aremin+aremax)*0.05 && aretmx < aremin*0.5 ) // aretmx =(aremin+aremax*2)/3.0;