41 namespace NekMeshUtils
52 vector<NodeSharedPtr> pNodeList,
54 :
Element(pConf, GetNumNodes(pConf), pNodeList.size())
62 for (
int i = 0; i < 2; ++i)
66 vector<NodeSharedPtr> edgeNodes;
69 for (
int j = 0; j < n; ++j)
71 edgeNodes.push_back(pNodeList[2 + j]);
74 m_edge.push_back(boost::shared_ptr<Edge>(
new Edge(
84 p[0] =
m_vertex[0]->GetGeom(coordDim);
85 p[1] =
m_vertex[1]->GetGeom(coordDim);
87 if (
m_edge[0]->m_edgeNodes.size() > 0)
93 c->m_points.push_back(p[0]);
94 for (
int i = 0; i <
m_edge[0]->m_edgeNodes.size(); ++i)
96 c->m_points.push_back(
m_edge[0]->m_edgeNodes[i]->
GetGeom(coordDim));
98 c->m_points.push_back(p[1]);
Basic information about an element.
Represents an edge which joins two points.
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
ElementFactory & GetElementFactory()
ElmtConfig m_conf
Contains configuration of the element.
boost::shared_ptr< Curve > CurveSharedPtr
std::vector< int > m_taglist
List of integers specifying properties of the element.
LibUtilities::PointsType m_edgeCurveType
Distribution of points in edges.
unsigned int m_order
Order of the element.
static NEKMESHUTILS_EXPORT unsigned int GetNumNodes(ElmtConfig pConf)
Return the number of nodes defining a line.
std::vector< NodeSharedPtr > m_vertex
List of element vertex nodes.
unsigned int m_dim
Dimension of the element.
boost::shared_ptr< SegGeom > SegGeomSharedPtr
std::vector< EdgeSharedPtr > m_edge
List of element edges.
std::string m_tag
Tag character describing the element.
virtual NEKMESHUTILS_EXPORT SpatialDomains::GeometrySharedPtr GetGeom(int coordDim)
Generate a Nektar++ geometry object for this element.
unsigned int m_id
ID of the element.
LibUtilities::PointsType m_curveType
Volume curve type.
boost::shared_ptr< Geometry > GeometrySharedPtr
boost::shared_ptr< PointGeom > PointGeomSharedPtr
Base class for element definitions.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, tDescription pDesc="")
Register a class with the factory.