mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-03 22:25:36 +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
|
// 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();
|
double fact = nbSegFinal / nbSegs.back();
|
||||||
if ( maxSegSize / fact > myHyp->GetMaxSize() )
|
if ( maxSegSize / fact > myHyp->GetMaxSize() )
|
||||||
fact = ++nbSegFinal / nbSegs.back();
|
fact = ++nbSegFinal / nbSegs.back();
|
||||||
|
Loading…
Reference in New Issue
Block a user