OGS
|
Calculates the quality of mesh elements based on the ratio between shortest and longest edge of an element
Definition at line 27 of file EdgeRatioMetric.h.
#include <EdgeRatioMetric.h>
Public Member Functions | |
void | calculateQuality () override |
Calculates the quality metric for each element of the mesh. | |
ElementQualityMetric (MeshLib::Mesh const &mesh) | |
Public Member Functions inherited from MeshToolsLib::ElementQualityMetric | |
ElementQualityMetric (MeshLib::Mesh const &mesh) | |
virtual | ~ElementQualityMetric ()=default |
std::vector< double > const & | getElementQuality () const |
Returns the result vector. | |
virtual BaseLib::Histogram< double > | getHistogram (std::size_t n_bins=0) const |
Additional Inherited Members | |
Protected Attributes inherited from MeshToolsLib::ElementQualityMetric | |
double | _min = std::numeric_limits<double>::max() |
double | _max = 0 |
MeshLib::Mesh const & | _mesh |
std::vector< double > | _element_quality_metric |
|
overridevirtual |
Calculates the quality metric for each element of the mesh.
Implements MeshToolsLib::ElementQualityMetric.
Definition at line 22 of file EdgeRatioMetric.cpp.
References MeshToolsLib::ElementQualityMetric::_element_quality_metric, MeshToolsLib::ElementQualityMetric::_mesh, MeshLib::Mesh::getElements(), MeshLib::Mesh::getNumberOfElements(), and MathLib::sqrDist().
|
explicit |
Definition at line 33 of file ElementQualityMetric.cpp.