From: eap Date: Mon, 4 Jul 2011 11:26:53 +0000 (+0000) Subject: IPAL21957: Max Element Area does not influence on resulting mesh for Triangle Mefisto X-Git-Tag: V6_3_1rc1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8d1f5fd9481c2d369308c4de3d50b077cf0a7c9e;p=modules%2Fsmesh.git IPAL21957: Max Element Area does not influence on resulting mesh for Triangle Mefisto Fully restore "protection contre une arete max desiree trop grande ou trop petite" to fix regression of bugs/I5 --- diff --git a/src/MEFISTO2/aptrte.cxx b/src/MEFISTO2/aptrte.cxx index 7ffd34dba..9d02fc14e 100755 --- a/src/MEFISTO2/aptrte.cxx +++ b/src/MEFISTO2/aptrte.cxx @@ -345,16 +345,14 @@ 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; -#define _MAXFACT 4.05 - if( aretmx > aremin*_MAXFACT ) aretmx = aremin*_MAXFACT; + if( aretmx > aremax*2.05 ) aretmx = aremax; // 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; + if( (aremax-aremin) > (aremin+aremax)*0.05 && aretmx < aremin*0.5 ) + aretmx =(aremin+aremax*2)/3.0; -// if( aretmx < aremin && aremin > 0 ) -// aretmx = aremin; + if( aretmx < aremin && aremin > 0 ) + aretmx = aremin; //sauvegarde pour la fonction areteideale_ aretemaxface_ = aretmx;