mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 14:10:34 +05:00
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:
commit
eb6f0efc2f
@ -1110,7 +1110,9 @@ namespace netgen
|
|||||||
{
|
{
|
||||||
double s = s0 + j/(double) nsections * (s1-s0);
|
double s = s0 + j/(double) nsections * (s1-s0);
|
||||||
prop.SetParameter (s);
|
prop.SetParameter (s);
|
||||||
double curvature = prop.Curvature();
|
double curvature = 0;
|
||||||
|
if(prop.IsTangentDefined())
|
||||||
|
curvature = prop.Curvature();
|
||||||
if(curvature> maxcur) maxcur = curvature;
|
if(curvature> maxcur) maxcur = curvature;
|
||||||
|
|
||||||
if (curvature >= 1e99)
|
if (curvature >= 1e99)
|
||||||
|
Loading…
Reference in New Issue
Block a user