return 0 based periodic vertices in new interface

This commit is contained in:
Christopher Lackner 2018-06-12 10:34:13 +02:00
parent 7e8f8dbeb0
commit 2a31e00148

View File

@ -301,6 +301,11 @@ NGX_INLINE DLL_HEADER Ng_Buffer<int[2]> Ngx_Mesh :: GetPeriodicVertices(int idnr
{
Array<INDEX_2> 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() };
}