35 #ifndef NEKMESHUTILS_MESHELEMENTS_TRIANGLE 36 #define NEKMESHUTILS_MESHELEMENTS_TRIANGLE 44 namespace NekMeshUtils
55 std::vector<NodeSharedPtr> pNodeList,
56 std::vector<int> pTagList)
58 return std::make_shared<Triangle>(pConf, pNodeList, pTagList);
64 std::vector<NodeSharedPtr> pNodeList,
65 std::vector<int> pTagList);
74 std::vector<NodeSharedPtr> &nodeList)
const;
83 bool justConfig =
false);
static LibUtilities::ShapeType m_type
Element type.
Basic information about an element.
A 2-dimensional three-sided element.
virtual NEKMESHUTILS_EXPORT SpatialDomains::GeometrySharedPtr GetGeom(int coordDim)
Generate a Nektar++ geometry object for this element.
std::shared_ptr< Edge > EdgeSharedPtr
Shared pointer to an edge.
virtual NEKMESHUTILS_EXPORT void MakeOrder(int order, SpatialDomains::GeometrySharedPtr geom, LibUtilities::PointsType pType, int coordDim, int &id, bool justConfig=false)
Insert interior (i.e. volume) points into this element to make the geometry an order order representa...
NEKMESHUTILS_EXPORT Triangle(ElmtConfig pConf, std::vector< NodeSharedPtr > pNodeList, std::vector< int > pTagList)
Create a triangle element.
static ElementSharedPtr create(ElmtConfig pConf, std::vector< NodeSharedPtr > pNodeList, std::vector< int > pTagList)
Creates an instance of this class.
std::shared_ptr< Element > ElementSharedPtr
std::shared_ptr< Geometry > GeometrySharedPtr
virtual NEKMESHUTILS_EXPORT void GetCurvedNodes(std::vector< NodeSharedPtr > &nodeList) const
get list of volume interior nodes
static NEKMESHUTILS_EXPORT unsigned int GetNumNodes(ElmtConfig pConf)
Return the number of nodes defining a triangle.
#define NEKMESHUTILS_EXPORT
virtual NEKMESHUTILS_EXPORT StdRegions::Orientation GetEdgeOrient(int edgeId, EdgeSharedPtr edge)
Get the edge orientation of edge with respect to the local element, which lies at edge index edgeId...
NEKMESHUTILS_EXPORT Array< OneD, NekDouble > Normal(bool inward=false)
returns the normal to the element
virtual NEKMESHUTILS_EXPORT ~Triangle()
Base class for element definitions.