diff --git a/libsrc/visualization/vsmesh.cpp b/libsrc/visualization/vsmesh.cpp index 2e0ff9a7..d7b1059b 100644 --- a/libsrc/visualization/vsmesh.cpp +++ b/libsrc/visualization/vsmesh.cpp @@ -1029,8 +1029,11 @@ namespace netgen else glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, matcol); + static Point<3> xa[129]; + static Vec<3> na[129]; - + + for (int hi = 0; hi < seia.Size(); hi++) { SurfaceElementIndex sei = seia[hi]; @@ -1058,8 +1061,6 @@ namespace netgen if (curv.IsHighOrder()) // && curv.IsSurfaceElementCurved(sei)) { if (hoplotn > 128) hoplotn = 128; - Point<3> xa[129]; - Vec<3> na[129]; for (int i = 0; i < hoplotn; i++) {