![]() |
OGS
|
|
Interface class for handling mesh element quality metrics
Definition at line 24 of file ElementQualityInterface.h.
#include <ElementQualityInterface.h>
Public Member Functions | |
| ElementQualityInterface (MeshLib::Mesh const &mesh, MeshLib::MeshQualityType t) | |
| Constructor. | |
| std::vector< double > const | getQualityVector () const |
| Returns the vector containing a quality measure for each element. | |
| BaseLib::Histogram< double > | getHistogram (std::size_t n_bins=0) const |
| int | writeHistogram (std::string const &file_name, std::size_t n_bins=0) const |
| Writes a histogram of the quality vector to a specified file. | |
Private Member Functions | |
| void | calculateElementQuality (MeshLib::Mesh const &mesh, MeshLib::MeshQualityType t) |
Private Attributes | |
| MeshLib::MeshQualityType const | _type |
| MeshLib::Mesh const & | _mesh |
| std::unique_ptr< MeshToolsLib::ElementQualityMetric > | _quality_tester |
|
inline |
Constructor.
Definition at line 28 of file ElementQualityInterface.h.
References _mesh, _quality_tester, _type, and calculateElementQuality().
|
inlineprivate |
Calculates the quality of each mesh element based on the specified metric
Definition at line 74 of file ElementQualityInterface.h.
References _quality_tester, MeshLib::EDGERATIO, MeshLib::ELEMENTSIZE, MeshLib::EQUIANGLESKEW, ERR(), MeshLib::RADIUSEDGERATIO, and MeshLib::SIZEDIFFERENCE.
Referenced by ElementQualityInterface().
|
inline |
Returns a histogram of the quality vector separated into the given number of bins. If no number of bins is specified, one will be calculated based on the Sturges criterium.
Definition at line 48 of file ElementQualityInterface.h.
References _quality_tester.
|
inline |
Returns the vector containing a quality measure for each element.
Definition at line 36 of file ElementQualityInterface.h.
References _quality_tester.
Referenced by main(), and MainWindow::showMeshQualitySelectionDialog().
|
inline |
Writes a histogram of the quality vector to a specified file.
Definition at line 58 of file ElementQualityInterface.h.
References _mesh, _quality_tester, _type, and BaseLib::Histogram< T >::write().
Referenced by MainWindow::showMeshQualitySelectionDialog().
|
private |
Definition at line 102 of file ElementQualityInterface.h.
Referenced by ElementQualityInterface(), and writeHistogram().
|
private |
Definition at line 103 of file ElementQualityInterface.h.
Referenced by ElementQualityInterface(), calculateElementQuality(), getHistogram(), getQualityVector(), and writeHistogram().
|
private |
Definition at line 101 of file ElementQualityInterface.h.
Referenced by ElementQualityInterface(), and writeHistogram().