mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +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