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