OGS
TetRule.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "CellRule.h"
14#include "Element.h"
15#include "MeshLib/MeshEnums.h"
16
17namespace MeshLib
18{
19
20class TetRule : public CellRule
21{
22public:
24 static const unsigned n_base_nodes = 4u;
25
28
30 static const unsigned n_faces = 4;
31
33 static const unsigned n_edges = 6;
34
36 static const unsigned n_neighbors = 4;
37
42 static bool isPntInElement(Node const* const* nodes,
43 MathLib::Point3d const& pnt, double eps);
44
48 static ElementErrorCode validate(const Element* e);
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 const unsigned n_edges
Constant: The number of edges.
Definition TetRule.h:33
static bool isPntInElement(Node const *const *nodes, MathLib::Point3d const &pnt, double eps)
Definition TetRule.cpp:23
static const MeshElemType mesh_elem_type
Constant: The geometric type of the element.
Definition TetRule.h:27
static const unsigned n_base_nodes
Constant: The number of base nodes for this element.
Definition TetRule.h:24
static const unsigned n_faces
Constant: The number of faces.
Definition TetRule.h:30
static double computeVolume(Node const *const *element_nodes)
Calculates the volume of a tetrahedron.
Definition TetRule.cpp:17
static ElementErrorCode validate(const Element *e)
Definition TetRule.cpp:30
static const unsigned n_neighbors
Constant: The number of neighbors.
Definition TetRule.h:36
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.
Definition MeshEnums.h:27