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