diff --git a/libsrc/include/nginterface_v2_impl.hpp b/libsrc/include/nginterface_v2_impl.hpp index b866f812..938efbf8 100644 --- a/libsrc/include/nginterface_v2_impl.hpp +++ b/libsrc/include/nginterface_v2_impl.hpp @@ -301,6 +301,11 @@ NGX_INLINE DLL_HEADER Ng_Buffer Ngx_Mesh :: GetPeriodicVertices(int idnr { Array apairs; mesh->GetIdentifications().GetPairs (idnr, apairs); + for(auto& ind : apairs) + { + ind.I1()--; + ind.I2()--; + } typedef int ti2[2]; return { apairs.Size(), (ti2*)(void*)apairs.Release() }; }