mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
Merge branch 'periodic_vertices_new_interface' into 'master'
return 0 based periodic vertices in new interface See merge request jschoeberl/netgen!88
This commit is contained in:
commit
a857c63954
@ -301,6 +301,11 @@ NGX_INLINE DLL_HEADER Ng_Buffer<int[2]> Ngx_Mesh :: GetPeriodicVertices(int idnr
|
|||||||
{
|
{
|
||||||
Array<INDEX_2> apairs;
|
Array<INDEX_2> apairs;
|
||||||
mesh->GetIdentifications().GetPairs (idnr, apairs);
|
mesh->GetIdentifications().GetPairs (idnr, apairs);
|
||||||
|
for(auto& ind : apairs)
|
||||||
|
{
|
||||||
|
ind.I1()--;
|
||||||
|
ind.I2()--;
|
||||||
|
}
|
||||||
typedef int ti2[2];
|
typedef int ti2[2];
|
||||||
return { apairs.Size(), (ti2*)(void*)apairs.Release() };
|
return { apairs.Size(), (ti2*)(void*)apairs.Release() };
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user