Prevent crash at too small comment ratio of geometric progression hypothesis

This commit is contained in:
eap 2020-02-13 13:37:31 +03:00
parent 2fb74f97f6
commit bda71f4197

View File

@ -974,6 +974,8 @@ bool StdMeshers_Regular_1D::computeInternalParameters(SMESH_Mesh & theMesh,
an = eltSize;
eltSize *= q;
++nbParams;
if ( q < 1. && eltSize < 1e-100 )
return error("Too small common ratio causes too many segments");
}
if ( nbParams > 1 )
{