fix range check exception in tutorials

This commit is contained in:
Christopher Lackner 2020-10-19 15:27:36 +02:00
parent 397ef354a3
commit ce3f3429d4

View File

@ -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;