mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
Merge branch 'fix_getelement' into 'master'
Fix getelement See merge request jschoeberl/netgen!107
This commit is contained in:
commit
0247b92a8a
@ -64,6 +64,13 @@ NGX_INLINE DLL_HEADER Ng_Element Ngx_Mesh :: GetElement<0> (size_t nr) const
|
||||
ret.facets.num = 1;
|
||||
ret.facets.base = 1;
|
||||
ret.facets.ptr = (int*)&el.pnum;
|
||||
|
||||
if (mesh->GetDimension() == 1)
|
||||
ret.mat = mesh->GetBCNamePtr(el.index-1);
|
||||
else if (mesh->GetDimension() == 2)
|
||||
ret.mat = mesh->GetCD2NamePtr(el.index-1);
|
||||
else
|
||||
ret.mat = mesh->GetCD3NamePtr(el.index-1);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user