]> SALOME platform Git repositories - modules/smesh.git/blobdiff - src/MEFISTO2/aptrte.cxx
Salome HOME
IPAL21957: Max Element Area does not influence on resulting mesh for Triangle Mefisto
[modules/smesh.git] / src / MEFISTO2 / aptrte.cxx
index addd4e096fd007c55fa2ff813bd4d6b7a010a3d2..9d02fc14ef17edca248fa3503db79b39e28e2dd2 100755 (executable)
@@ -345,14 +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;
+  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;
+  // 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( aretmx < aremin  && aremin > 0 )
-//     aretmx = aremin;
+  if( aretmx < aremin  && aremin > 0 )
+    aretmx = aremin;
 
   //sauvegarde pour la fonction areteideale_
   aretemaxface_ = aretmx;
@@ -415,6 +415,8 @@ void  aptrte( Z   nutysu, R      aretmx,
   if( mntree==NULL ) goto ERREUR;
 
   //initialisation du tableau letree et ajout dans letree des sommets 1 a nbsomm
+  comxmi[0].x = comxmi[1].x = uvslf[0].x;
+  comxmi[0].y = comxmi[1].y = uvslf[0].y;
   teajte( mxsomm, nbsomm, mnpxyd, comxmi, aretmx, mxtree, mntree, ierr );
   comxmi[0].z=0;
   comxmi[1].z=0;