OGS
MeshLib::QuadraticEdgeReturn Class Reference

Detailed Description

Returns quadratic order edge.

Definition at line 38 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 33 of file EdgeReturn.cpp.

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

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


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