22 if (i < e->getNumberOfEdges())
24 auto** nodes =
new Node*[2];
29 ERR(
"Error in MeshLib::Element::getEdge() - Index does not exist.");
35 if (i < e->getNumberOfEdges())
37 auto** nodes =
new Node*[3];
43 ERR(
"Error in MeshLib::Element::getEdge() - Index does not exist.");
Definition of the Element class.
Definition of the Line class.
void ERR(fmt::format_string< Args... > fmt, Args &&... args)
Definition of the Node class.
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