OGS
|
Interface class for handling mesh element quality metrics
Definition at line 35 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 39 of file ElementQualityInterface.h.
References _mesh, _type, and calculateElementQuality().
|
inlineprivate |
Calculates the quality of each mesh element based on the specified metric
Definition at line 85 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 59 of file ElementQualityInterface.h.
References _quality_tester.
|
inline |
Returns the vector containing a quality measure for each element.
Definition at line 47 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 69 of file ElementQualityInterface.h.
References _mesh, _quality_tester, _type, MeshLib::Mesh::getName(), and BaseLib::Histogram< T >::write().
Referenced by MainWindow::showMeshQualitySelectionDialog().
|
private |
Definition at line 113 of file ElementQualityInterface.h.
Referenced by ElementQualityInterface(), and writeHistogram().
|
private |
Definition at line 114 of file ElementQualityInterface.h.
Referenced by calculateElementQuality(), getHistogram(), getQualityVector(), and writeHistogram().
|
private |
Definition at line 112 of file ElementQualityInterface.h.
Referenced by ElementQualityInterface(), and writeHistogram().