mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
fix SIGFPE on too short EDGEs
This commit is contained in:
parent
10e12cc117
commit
c789cfecef
@ -1266,7 +1266,7 @@ bool AdaptiveAlgo::makeSegments()
|
||||
}
|
||||
|
||||
// compute parameters of nodes
|
||||
int nbSegFinal = int(floor(nbSegs.back()+0.5));
|
||||
int nbSegFinal = Max( 1, int(floor( nbSegs.back() + 0.5 )));
|
||||
double fact = nbSegFinal / nbSegs.back();
|
||||
if ( maxSegSize / fact > myHyp->GetMaxSize() )
|
||||
fact = ++nbSegFinal / nbSegs.back();
|
||||
|
Loading…
Reference in New Issue
Block a user