Return useful values in Ng_GetNode<0> for 1d meshes

This commit is contained in:
Gerhard Kitzler 2016-08-17 17:31:37 +02:00
parent 05add9530d
commit 1a64efc213

View File

@ -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.ptr = (int*)&ia[0];
node.bnd_elements.ne = 1; // nothing useful ...
node.bnd_elements.ptr = nullptr;
FlatArray<int> bia = mesh->GetTopology().GetVertexPointElements(vnr);
node.bnd_elements.ne = bia.Size();
node.bnd_elements.ptr = (int*)&bia[0];
break;
}
default: