mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
return 0 based periodic vertices in new interface
This commit is contained in:
parent
7e8f8dbeb0
commit
2a31e00148
@ -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() };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user