OGS
|
Definition at line 20 of file CellRule.h.
#include <CellRule.h>
Static Public Member Functions | |
static bool | testElementNodeOrder (Element const &e) |
Static Public Attributes | |
static const unsigned | dimension = 3u |
Constant: Dimension of this mesh element. | |
Static Protected Member Functions | |
template<typename ElementRule > | |
static unsigned | identifyFace (Node const *const *element_nodes, Node const *nodes[ElementRule::dimension]) |
Returns the ID of a face given an array of nodes. | |
|
inlinestaticprotected |
Returns the ID of a face given an array of nodes.
Definition at line 39 of file CellRule.h.
Referenced by MeshLib::HexRule20::identifyFace(), MeshLib::HexRule8::identifyFace(), MeshLib::PrismRule15::identifyFace(), MeshLib::PrismRule6::identifyFace(), MeshLib::PyramidRule13::identifyFace(), MeshLib::PyramidRule5::identifyFace(), MeshLib::TetRule10::identifyFace(), and MeshLib::TetRule4::identifyFace().
|
static |
Checks if the node order of an element is correct by testing surface normals. For 3D elements true is returned if the normals of all faces points away from the centre of the element. Note: This method might give wrong results if something else is wrong with the element (non-planar faces, non-convex geometry, possibly zero volume) which causes the calculated center of gravity to lie outside of the actual element
Definition at line 18 of file CellRule.cpp.
References MathLib::Point3d::asEigenVector3d(), MeshLib::getCenterOfGravity(), MeshLib::Element::getFace(), MeshLib::Element::getNode(), MeshLib::Element::getNumberOfFaces(), and MeshLib::FaceRule::getSurfaceNormal().
|
static |
Constant: Dimension of this mesh element.
Definition at line 24 of file CellRule.h.