mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-13 06:30:34 +05:00
fix el.mat for bbnd elements in 3D
This commit is contained in:
parent
f9612d0b59
commit
794d1b6598
@ -72,8 +72,15 @@ NGX_INLINE DLL_HEADER Ng_Element Ngx_Mesh :: GetElement<1> (size_t nr) const
|
|||||||
ret.index = el.si;
|
ret.index = el.si;
|
||||||
if (mesh->GetDimension() == 2)
|
if (mesh->GetDimension() == 2)
|
||||||
ret.mat = mesh->GetBCNamePtr(el.si-1);
|
ret.mat = mesh->GetBCNamePtr(el.si-1);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (mesh->GetDimension() == 3){
|
||||||
|
ret.mat = &mesh->GetCD2Name(el.edgenr-1);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
ret.mat = nullptr;
|
ret.mat = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
ret.points.num = el.GetNP();
|
ret.points.num = el.GetNP();
|
||||||
ret.points.ptr = (int*)&(el[0]);
|
ret.points.ptr = (int*)&(el[0]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user