OGS
HexRule.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{
19class HexRule : public CellRule
20{
21public:
23 static const unsigned n_base_nodes = 8u;
24
27
29 static const unsigned n_faces = 6;
30
32 static const unsigned n_edges = 12;
33
35 static const unsigned n_neighbors = 6;
36
41 static bool isPntInElement(Node const* const* nodes,
42 MathLib::Point3d const& pnt, double eps);
43
47 static ElementErrorCode validate(const Element* e);
48
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_neighbors
Constant: The number of neighbors.
Definition HexRule.h:35
static ElementErrorCode validate(const Element *e)
Definition HexRule.cpp:64
static const unsigned n_edges
Constant: The number of edges.
Definition HexRule.h:32
static const unsigned n_faces
Constant: The number of faces.
Definition HexRule.h:29
static bool isPntInElement(Node const *const *nodes, MathLib::Point3d const &pnt, double eps)
Definition HexRule.cpp:46
static const MeshElemType mesh_elem_type
Constant: The geometric type of the element.
Definition HexRule.h:26
static double computeVolume(Node const *const *element_nodes)
Definition HexRule.cpp:18
static const unsigned n_base_nodes
Constant: The number of base nodes for this element.
Definition HexRule.h:23
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.
Definition MeshEnums.h:27