mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-13 14:40:35 +05:00
Return useful values in Ng_GetNode<0> for 1d meshes
This commit is contained in:
parent
05add9530d
commit
1a64efc213
@ -189,8 +189,9 @@ template <> NGX_INLINE DLL_HEADER const Ng_Node<0> Ngx_Mesh :: GetNode<0> (int v
|
|||||||
node.elements.ne = ia.Size();
|
node.elements.ne = ia.Size();
|
||||||
node.elements.ptr = (int*)&ia[0];
|
node.elements.ptr = (int*)&ia[0];
|
||||||
|
|
||||||
node.bnd_elements.ne = 1; // nothing useful ...
|
FlatArray<int> bia = mesh->GetTopology().GetVertexPointElements(vnr);
|
||||||
node.bnd_elements.ptr = nullptr;
|
node.bnd_elements.ne = bia.Size();
|
||||||
|
node.bnd_elements.ptr = (int*)&bia[0];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user