15 if (i < e->getNumberOfEdges())
17 auto** nodes =
new Node*[2];
22 ERR(
"Error in MeshLib::Element::getEdge() - Index does not exist.");
28 if (i < e->getNumberOfEdges())
30 auto** nodes =
new Node*[3];
36 ERR(
"Error in MeshLib::Element::getEdge() - Index does not exist.");
void ERR(fmt::format_string< Args... > fmt, Args &&... args)
std::size_t getID() const
Returns the ID of the element.
virtual Node * getEdgeNode(unsigned edge_id, unsigned node_id) const =0
Return a specific edge node.
static const Element * getEdge(const Element *e, unsigned i)
Returns i-th edge of the given element.
static const Element * getEdge(const Element *e, unsigned i)
Returns i-th edge of the given element.
TemplateElement< MeshLib::LineRule2 > Line
TemplateElement< MeshLib::LineRule3 > Line3