From 8d1f5fd9481c2d369308c4de3d50b077cf0a7c9e Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 4 Jul 2011 11:26:53 +0000 Subject: [PATCH] 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 --- src/MEFISTO2/aptrte.cxx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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; -- 2.30.2