mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 11:40:33 +05:00
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
This commit is contained in:
parent
353134d557
commit
8d1f5fd948
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user