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:
Joachim Schöberl 2018-06-12 10:38:14 +02:00
commit a857c63954

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() };
}