mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-26 18:40:34 +05:00
fix SIGFPE on too short EDGEs
This commit is contained in:
parent
68cf640188
commit
10e12cc117
@ -1227,7 +1227,7 @@ bool AdaptiveAlgo::makeSegments()
|
||||
const double f = eData.myC3d.FirstParameter(), l = eData.myC3d.LastParameter();
|
||||
const double parLen = l - f;
|
||||
const int nbDivSeg = 5;
|
||||
int nbDiv = int ( eData.myLength / edgeMinSize * nbDivSeg );
|
||||
int nbDiv = Max( 1, int ( eData.myLength / edgeMinSize * nbDivSeg ));
|
||||
|
||||
// compute nb of segments
|
||||
bool toRecompute = true;
|
||||
|
Loading…
Reference in New Issue
Block a user