mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
fix range check exception in tutorials
This commit is contained in:
parent
397ef354a3
commit
ce3f3429d4
@ -432,7 +432,7 @@ namespace netgen
|
||||
|
||||
|
||||
auto rev0 = dynamic_cast<const RevolutionFace*> (geometry->GetSurface(locsurf[0]));
|
||||
auto rev1 = dynamic_cast<const RevolutionFace*> (geometry->GetSurface(locsurf[1]));
|
||||
auto rev1 = locsurf.Size() > 1 ? dynamic_cast<const RevolutionFace*> (geometry->GetSurface(locsurf[1])) : nullptr;
|
||||
if (numprim == 2 && rev0 && rev1)
|
||||
{
|
||||
NgArray<Point<3>> pts;
|
||||
|
Loading…
Reference in New Issue
Block a user