From 2a31e00148f2dec582196dc07a66672d4a99a450 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Tue, 12 Jun 2018 10:34:13 +0200 Subject: [PATCH] return 0 based periodic vertices in new interface --- libsrc/include/nginterface_v2_impl.hpp | 5 +++++ 1 file changed, 5 insertions(+) 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() }; }