Nektar++
|
Represents an edge which joins two points. More...
#include <Edge.h>
Public Member Functions | |
NEKMESHUTILS_EXPORT | Edge (NodeSharedPtr pVertex1, NodeSharedPtr pVertex2, std::vector< NodeSharedPtr > pEdgeNodes, LibUtilities::PointsType pCurveType) |
Creates a new edge. More... | |
NEKMESHUTILS_EXPORT | Edge (NodeSharedPtr pVertex1, NodeSharedPtr pVertex2) |
Creates a new linear edge. More... | |
NEKMESHUTILS_EXPORT | Edge (const Edge &pSrc) |
Copies an existing edge. More... | |
NEKMESHUTILS_EXPORT | ~Edge () |
NEKMESHUTILS_EXPORT unsigned int | GetNodeCount () const |
Returns the total number of nodes defining the edge. More... | |
NEKMESHUTILS_EXPORT void | GetCurvedNodes (std::vector< NodeSharedPtr > &nodeList) const |
NEKMESHUTILS_EXPORT std::string | GetXmlCurveString () const |
Creates a Nektar++ string listing the coordinates of all the nodes. More... | |
NEKMESHUTILS_EXPORT SpatialDomains::SegGeomSharedPtr | GetGeom (int coordDim) |
Generate a SpatialDomains::SegGeom object for this edge. More... | |
Public Attributes | |
unsigned int | m_id |
ID of edge. More... | |
NodeSharedPtr | m_n1 |
First vertex node. More... | |
NodeSharedPtr | m_n2 |
Second vertex node. More... | |
std::vector< NodeSharedPtr > | m_edgeNodes |
List of control nodes between the first and second vertices. More... | |
LibUtilities::PointsType | m_curveType |
Distributions of points along edge. More... | |
std::vector< std::pair < ElementSharedPtr, int > > | m_elLink |
Element(s) which are linked to this edge. More... | |
Private Attributes | |
SpatialDomains::SegGeomSharedPtr | m_geom |
Represents an edge which joins two points.
An edge is defined by two nodes (vertices) and, for high-order edges, a set of control nodes defining the shape of the edge.
|
inline |
Creates a new edge.
Definition at line 65 of file Edge.h.
|
inline |
Creates a new linear edge.
Definition at line 78 of file Edge.h.
|
inline |
Copies an existing edge.
Definition at line 87 of file Edge.h.
|
inline |
|
inline |
Definition at line 103 of file Edge.h.
References m_edgeNodes, m_n1, and m_n2.
Referenced by GetXmlCurveString().
|
inline |
Generate a SpatialDomains::SegGeom object for this edge.
Definition at line 137 of file Edge.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), m_curveType, m_edgeNodes, m_id, m_n1, and m_n2.
|
inline |
Returns the total number of nodes defining the edge.
Definition at line 98 of file Edge.h.
References m_edgeNodes.
|
inline |
Creates a Nektar++ string listing the coordinates of all the nodes.
Definition at line 116 of file Edge.h.
References GetCurvedNodes().
LibUtilities::PointsType Nektar::NekMeshUtils::Edge::m_curveType |
std::vector<NodeSharedPtr> Nektar::NekMeshUtils::Edge::m_edgeNodes |
List of control nodes between the first and second vertices.
Definition at line 179 of file Edge.h.
Referenced by GetCurvedNodes(), GetGeom(), and GetNodeCount().
std::vector<std::pair<ElementSharedPtr, int> > Nektar::NekMeshUtils::Edge::m_elLink |
Element(s) which are linked to this edge.
|
private |
unsigned int Nektar::NekMeshUtils::Edge::m_id |
NodeSharedPtr Nektar::NekMeshUtils::Edge::m_n1 |
First vertex node.
Definition at line 175 of file Edge.h.
Referenced by GetCurvedNodes(), and GetGeom().
NodeSharedPtr Nektar::NekMeshUtils::Edge::m_n2 |
Second vertex node.
Definition at line 177 of file Edge.h.
Referenced by GetCurvedNodes(), and GetGeom().