mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
if tangent is not defined and not checked this leads to segfault
This commit is contained in:
parent
7e329eaa5a
commit
f54c47bac6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user