OGS
LineRule.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "EdgeRule.h"
14#include "Element.h"
15#include "MeshLib/MeshEnums.h"
16
17namespace MeshLib
18{
22class LineRule : public EdgeRule
23{
24public:
26 static const unsigned n_base_nodes = 2u;
27
30
32 static const unsigned n_neighbors = 2;
33
38 static bool isPntInElement(Node const* const* nodes,
39 MathLib::Point3d const& pnt, double eps);
40
44 static ElementErrorCode validate(const Element* e);
45
47 static unsigned identifyFace(Node const* const* /*element_nodes*/,
48 Node const* nodes[1]);
49
51 static double computeVolume(Node const* const* element_nodes);
52};
53} // namespace MeshLib
Definition of the Element class.
Definition of mesh-related Enumerations.
Collects error flags for mesh elements.
static unsigned identifyFace(Node const *const *, Node const *nodes[1])
Returns the ID of a face given an array of nodes.
Definition LineRule.cpp:55
static ElementErrorCode validate(const Element *e)
Definition LineRule.cpp:69
static double computeVolume(Node const *const *element_nodes)
Calculates the length of a line.
Definition LineRule.cpp:17
static const unsigned n_neighbors
Constant: The number of neighbors.
Definition LineRule.h:32
static const unsigned n_base_nodes
Constant: The number of base nodes for this element.
Definition LineRule.h:26
static const MeshElemType mesh_elem_type
Constant: The geometric type of the element.
Definition LineRule.h:29
static bool isPntInElement(Node const *const *nodes, MathLib::Point3d const &pnt, double eps)
Definition LineRule.cpp:22
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.
Definition MeshEnums.h:27