mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
get surface element from face
This commit is contained in:
parent
2b0d3f02ba
commit
2da1465d52
@ -184,6 +184,7 @@ namespace netgen
|
|||||||
public:
|
public:
|
||||||
Ng_Vertices vertices;
|
Ng_Vertices vertices;
|
||||||
Ng_Edges edges;
|
Ng_Edges edges;
|
||||||
|
int surface_el; // -1 if face not on surface
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -274,6 +274,7 @@ template <> NGX_INLINE DLL_HEADER const Ng_Node<2> Ngx_Mesh :: GetNode<2> (int n
|
|||||||
Ng_Node<2> node;
|
Ng_Node<2> node;
|
||||||
node.vertices.ptr = mesh->GetTopology().GetFaceVerticesPtr(nr);
|
node.vertices.ptr = mesh->GetTopology().GetFaceVerticesPtr(nr);
|
||||||
node.vertices.nv = (node.vertices.ptr[3] == 0) ? 3 : 4;
|
node.vertices.nv = (node.vertices.ptr[3] == 0) ? 3 : 4;
|
||||||
|
node.surface_el = mesh->GetTopology().GetFace2SurfaceElement (nr+1)-1;
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user