fix boundary-labels in 2D

This commit is contained in:
Joachim Schöberl 2016-10-10 19:58:14 +02:00
parent ff84375089
commit 06084bff82

View File

@ -64,6 +64,10 @@ NGX_INLINE DLL_HEADER Ng_Element Ngx_Mesh :: GetElement<1> (int nr) const
Ng_Element ret;
ret.type = NG_ELEMENT_TYPE(el.GetType());
ret.index = el.si;
if (mesh->GetDimension() == 2)
ret.mat = mesh->GetBCNamePtr(el.si-1);
else
ret.mat = nullptr;
ret.points.num = el.GetNP();
ret.points.ptr = (int*)&(el[0]);