mirror of
https://github.com/NGSolve/netgen.git
synced 2025-05-19 00:30:48 +05:00
[occ] Only access face curvature if defined
This commit is contained in:
parent
749d4a7026
commit
0c89682e53
@ -1101,7 +1101,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…
x
Reference in New Issue
Block a user