diff --git a/libsrc/interface/readuser.cpp b/libsrc/interface/readuser.cpp index 2b5ce21c..472592ac 100644 --- a/libsrc/interface/readuser.cpp +++ b/libsrc/interface/readuser.cpp @@ -668,7 +668,7 @@ namespace netgen { Element2d el(TRIG); for (auto i : IntRange(3)) - el[i] = (*geom)[STLTrigIndex(ti)][i]; + el[i] = int((*geom)[STLTrigId(ti+IndexBASE())][i]); el.SetIndex(1);