51 std::vector<double> empty_quality_vec(0);
52 return empty_quality_vec;
66 int writeHistogram(std::string
const& file_name, std::size_t n_bins = 0)
const
84 std::make_unique<MeshLib::ElementSizeMetric>(mesh);
87 std::make_unique<MeshLib::SizeDifferenceMetric>(mesh);
92 std::make_unique<MeshLib::RadiusEdgeRatioMetric>(mesh);
95 ERR(
"ElementQualityInterface::calculateElementQuality(): Unknown MeshQualityType.");
Definition of the AngleSkewMetric class.
Definition of the EdgeRatioMetric class.
Definition of the ElementQualityMetricBase class.
Implementation of the AreaMetric class.
Implementation of Histogram class.
void ERR(char const *fmt, Args const &... args)
Definition of the Mesh class.
Definition of the RadiusEdgeRatioMetric class.
Definition of the SizeDifferenceMetric class.
int write(std::string const &file_name, std::string const &data_set_name, std::string const ¶m_name) const
MeshLib::Mesh const & _mesh
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.
ElementQualityInterface(MeshLib::Mesh const &mesh, MeshQualityType t)
Constructor.
void calculateElementQuality(MeshLib::Mesh const &mesh, MeshQualityType t)
Calculates the quality of each mesh element based on the specified metric.
MeshQualityType const _type
std::vector< double > const getQualityVector() const
Returns the vector containing a quality measure for each element.
std::unique_ptr< MeshLib::ElementQualityMetric > _quality_tester
BaseLib::Histogram< double > getHistogram(std::size_t n_bins=0) const
const std::string getName() const
Get name of the mesh.
MeshQualityType
Describes a mesh quality metric.
std::string MeshQualityType2String(const MeshQualityType t)