mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 21:30:35 +05:00
GetNode returns constant value
This commit is contained in:
parent
9dc8aa9ffb
commit
7525e2c09b
@ -240,7 +240,7 @@ namespace netgen
|
|||||||
|
|
||||||
|
|
||||||
template <int DIM>
|
template <int DIM>
|
||||||
Ng_Node<DIM> GetNode (int nr) const;
|
const Ng_Node<DIM> GetNode (int nr) const;
|
||||||
|
|
||||||
|
|
||||||
template <int DIM>
|
template <int DIM>
|
||||||
|
@ -612,7 +612,7 @@ namespace netgen
|
|||||||
return mesh->GetTopology().GetNFaces();
|
return mesh->GetTopology().GetNFaces();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <> DLL_HEADER Ng_Node<0> Ngx_Mesh :: GetNode<0> (int vnr) const
|
template <> DLL_HEADER const Ng_Node<0> Ngx_Mesh :: GetNode<0> (int vnr) const
|
||||||
{
|
{
|
||||||
Ng_Node<0> node;
|
Ng_Node<0> node;
|
||||||
vnr++;
|
vnr++;
|
||||||
@ -646,14 +646,14 @@ namespace netgen
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template <> DLL_HEADER Ng_Node<1> Ngx_Mesh :: GetNode<1> (int nr) const
|
template <> DLL_HEADER const Ng_Node<1> Ngx_Mesh :: GetNode<1> (int nr) const
|
||||||
{
|
{
|
||||||
Ng_Node<1> node;
|
Ng_Node<1> node;
|
||||||
node.vertices.ptr = mesh->GetTopology().GetEdgeVerticesPtr(nr);
|
node.vertices.ptr = mesh->GetTopology().GetEdgeVerticesPtr(nr);
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <> DLL_HEADER Ng_Node<2> Ngx_Mesh :: GetNode<2> (int nr) const
|
template <> DLL_HEADER const Ng_Node<2> Ngx_Mesh :: GetNode<2> (int nr) const
|
||||||
{
|
{
|
||||||
Ng_Node<2> node;
|
Ng_Node<2> node;
|
||||||
node.vertices.ptr = mesh->GetTopology().GetFaceVerticesPtr(nr);
|
node.vertices.ptr = mesh->GetTopology().GetFaceVerticesPtr(nr);
|
||||||
|
Loading…
Reference in New Issue
Block a user