Merge branch 'fix_call_occ_edge_curvature' into 'master'

if tangent is not defined and not checked this leads to segfault

See merge request jschoeberl/netgen!295
This commit is contained in:
Joachim Schöberl 2019-11-19 10:11:04 +00:00
commit eb6f0efc2f

View File

@ -1110,7 +1110,9 @@ namespace netgen
{
double s = s0 + j/(double) nsections * (s1-s0);
prop.SetParameter (s);
double curvature = prop.Curvature();
double curvature = 0;
if(prop.IsTangentDefined())
curvature = prop.Curvature();
if(curvature> maxcur) maxcur = curvature;
if (curvature >= 1e99)