Salome HOME
IPAL21957: Max Element Area does not influence on resulting mesh for Triangle Mefisto V6_3_1rc1 V6_3_1rc2
authoreap <eap@opencascade.com>
Mon, 4 Jul 2011 11:26:53 +0000 (11:26 +0000)
committereap <eap@opencascade.com>
Mon, 4 Jul 2011 11:26:53 +0000 (11:26 +0000)
     Fully restore "protection contre une arete max desiree trop grande ou trop petite"
     to fix regression of bugs/I5

src/MEFISTO2/aptrte.cxx

index 7ffd34dba81aa1d739b05657022268ddbadd19af..9d02fc14ef17edca248fa3503db79b39e28e2dd2 100755 (executable)
@@ -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;