Salome HOME
IPAL21957: Max Element Area does not influence on resulting mesh for Triangle Mefisto
authoreap <eap@opencascade.com>
Thu, 30 Jun 2011 13:32:04 +0000 (13:32 +0000)
committereap <eap@opencascade.com>
Thu, 30 Jun 2011 13:32:04 +0000 (13:32 +0000)
     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)

src/MEFISTO2/aptrte.cxx

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