OGS
Element.h File Reference

Detailed Description

Definition of the Element class.

Author
Karsten Rink
Date
2012-05-02

Definition in file Element.h.

#include <limits>
#include <optional>
#include <span>
#include "MathLib/Point3d.h"
#include "MeshLib/Elements/ElementErrorCode.h"
#include "MeshLib/Mesh.h"
#include "MeshLib/MeshEnums.h"
Include dependency graph for Element.h:

Go to the source code of this file.

Classes

class  MeshLib::Element
 

Namespaces

namespace  MeshLib
 

Functions

bool MeshLib::areNeighbors (Element const *const element, Element const *const other)
 Returns true if elem is a neighbour of this element and false otherwise.
 
bool MeshLib::hasZeroVolume (MeshLib::Element const &element)
 Returns true if the element has zero length/area/volume.
 
MathLib::Point3d MeshLib::getCenterOfGravity (MeshLib::Element const &element)
 Calculates the center of gravity for the mesh element.
 
std::pair< double, double > MeshLib::computeSqrNodeDistanceRange (MeshLib::Element const &element, bool const check_allnodes=true)
 Compute the minimum and maximum node distances for this element.
 
std::pair< double, double > MeshLib::computeSqrEdgeLengthRange (Element const &element)
 Compute the minimum and maximum squared edge length for this element.
 
bool MeshLib::isPointInElementXY (MathLib::Point3d const &p, Element const &e)
 
unsigned MeshLib::getNodeIDinElement (Element const &element, const Node *node)
 Returns the position of the given node in the node array of this element.
 
std::size_t MeshLib::getNodeIndex (Element const &element, unsigned const idx)