OGS
MeshLib::QuadraticEdgeReturn Class Reference

Detailed Description

Returns quadratic order edge.

Definition at line 31 of file EdgeReturn.h.

#include <EdgeReturn.h>

Static Public Member Functions

static const ElementgetEdge (const Element *e, unsigned i)
 Returns i-th edge of the given element.

Member Function Documentation

◆ getEdge()

const Element * MeshLib::QuadraticEdgeReturn::getEdge ( const Element * e,
unsigned i )
static

Returns i-th edge of the given element.

Definition at line 26 of file EdgeReturn.cpp.

27{
28 if (i < e->getNumberOfEdges())
29 {
30 auto** nodes = new Node*[3];
31 nodes[0] = const_cast<Node*>(e->getEdgeNode(i, 0));
32 nodes[1] = const_cast<Node*>(e->getEdgeNode(i, 1));
33 nodes[2] = const_cast<Node*>(e->getEdgeNode(i, 2));
34 return new Line3(nodes, e->getID());
35 }
36 ERR("Error in MeshLib::Element::getEdge() - Index does not exist.");
37 return nullptr;
38}
void ERR(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:40
TemplateElement< MeshLib::LineRule3 > Line3
Definition Line.h:15

References ERR(), MeshLib::Element::getEdgeNode(), and MeshLib::Element::getID().


The documentation for this class was generated from the following files: