OGS
PyramidRule.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 PyramidRule : public CellRule
21{
22public:
24 static const unsigned n_base_nodes = 5u;
25
28
30 static const unsigned n_faces = 5;
31
33 static const unsigned n_edges = 8;
34
36 static const unsigned n_neighbors = 5;
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
52 static double computeVolume(Node const* const* element_nodes);
53};
54} // namespace MeshLib
Definition of the Element class.
Definition of mesh-related Enumerations.
Collects error flags for mesh elements.
static const unsigned n_base_nodes
Constant: The number of base nodes for this element.
Definition PyramidRule.h:24
static const MeshElemType mesh_elem_type
Constant: The geometric type of the element.
Definition PyramidRule.h:27
static ElementErrorCode validate(const Element *e)
static const unsigned n_edges
Constant: The number of edges.
Definition PyramidRule.h:33
static const unsigned n_faces
Constant: The number of faces.
Definition PyramidRule.h:30
static const unsigned n_neighbors
Constant: The number of neighbors.
Definition PyramidRule.h:36
static double computeVolume(Node const *const *element_nodes)
static bool isPntInElement(Node const *const *nodes, MathLib::Point3d const &pnt, double eps)
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.
Definition MeshEnums.h:27