OGS
Element.cpp File Reference

Detailed Description

Implementation of the Element class.

Author
Karsten Rink
Date
2012-05-02

Definition in file Element.cpp.

#include "Element.h"
#include "BaseLib/Logging.h"
#include "Line.h"
#include "MathLib/GeometricBasics.h"
#include "MathLib/MathTools.h"
#include "MeshLib/Node.h"
Include dependency graph for Element.cpp:

Go to the source code of this file.

Namespaces

namespace  MeshLib
 

Functions

std::ostream & MeshLib::operator<< (std::ostream &os, Element const &e)
 
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)