OGS
|
A 1d Edge or Line Element.
Definition at line 22 of file LineRule.h.
#include <LineRule.h>
Static Public Member Functions | |
static bool | isPntInElement (Node const *const *nodes, MathLib::Point3d const &pnt, double eps) |
static ElementErrorCode | validate (const Element *e) |
static unsigned | identifyFace (Node const *const *, Node const *nodes[1]) |
Returns the ID of a face given an array of nodes. | |
static double | computeVolume (Node const *const *element_nodes) |
Calculates the length of a line. | |
Static Public Member Functions inherited from MeshLib::EdgeRule | |
static const Element * | getFace (const Element *, unsigned) |
Returns the i-th face of the element. | |
static bool | testElementNodeOrder (Element const &) |
Static Public Attributes | |
static const unsigned | n_base_nodes = 2u |
Constant: The number of base nodes for this element. | |
static const MeshElemType | mesh_elem_type = MeshElemType::LINE |
Constant: The geometric type of the element. | |
static const unsigned | n_neighbors = 2 |
Constant: The number of neighbors. | |
Static Public Attributes inherited from MeshLib::EdgeRule | |
static const unsigned | dimension = 1u |
Constant: Dimension of this mesh element. | |
static const unsigned | n_faces = 0 |
Constant: The number of faces. | |
static const unsigned | n_edges = 1 |
Constant: The number of edges. | |
|
static |
Calculates the length of a line.
Definition at line 17 of file LineRule.cpp.
References MathLib::sqrDist().
|
static |
Returns the ID of a face given an array of nodes.
Definition at line 55 of file LineRule.cpp.
|
static |
Checks if a point is inside the element.
pnt | a 3D MathLib::Point3d object |
eps | tolerance for numerical algorithm used or computing the property |
nodes | the nodes of the element. |
Definition at line 22 of file LineRule.cpp.
References MathLib::calcProjPntToLineAndDists(), and MathLib::sqrDist().
|
static |
Tests if the element is geometrically valid.
Definition at line 69 of file LineRule.cpp.
References MeshLib::hasZeroVolume(), and ZeroVolume.
|
static |
Constant: The geometric type of the element.
Definition at line 29 of file LineRule.h.
|
static |
Constant: The number of base nodes for this element.
Definition at line 26 of file LineRule.h.
|
static |
Constant: The number of neighbors.
Definition at line 32 of file LineRule.h.