From 353134d557032bb42e9174b77e647a20c488ca7f Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 30 Jun 2011 13:32:04 +0000 Subject: [PATCH] IPAL21957: Max Element Area does not influence on resulting mesh for Triangle Mefisto 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/MEFISTO2/aptrte.cxx b/src/MEFISTO2/aptrte.cxx index aa5ff172d..7ffd34dba 100755 --- a/src/MEFISTO2/aptrte.cxx +++ b/src/MEFISTO2/aptrte.cxx @@ -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; -- 2.39.2