mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
fix facets for 3d bbnd elements
This commit is contained in:
parent
1d96e50432
commit
8046b19b60
@ -111,7 +111,13 @@ NGX_INLINE DLL_HEADER Ng_Element Ngx_Mesh :: GetElement<1> (size_t nr) const
|
|||||||
ret.faces.num = 0;
|
ret.faces.num = 0;
|
||||||
ret.faces.ptr = NULL;
|
ret.faces.ptr = NULL;
|
||||||
|
|
||||||
if (mesh->GetDimension() == 2)
|
if (mesh->GetDimension() == 3)
|
||||||
|
{
|
||||||
|
ret.facets.num = 0;
|
||||||
|
ret.facets.base = 0;
|
||||||
|
ret.facets.ptr = nullptr;
|
||||||
|
}
|
||||||
|
else if (mesh->GetDimension() == 2)
|
||||||
{
|
{
|
||||||
ret.facets.num = 1;
|
ret.facets.num = 1;
|
||||||
ret.facets.base = 0;
|
ret.facets.base = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user