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