swh:1:snp:f521c49ab17ef7db6ec70b2430e1ed203f50383f
Raw File
Tip revision: e6a1a1a5addb548c4531d6ceff68be4a599ea579 authored by Lars Bilke on 07 May 2021, 07:09:25 UTC
[web] Fixed styling issue in books/tutorials.
Tip revision: e6a1a1a
SizeDifferenceMetric.h
/**
 * \file
 * \author Karsten Rink
 * \date   2015-03-24
 * \brief  Definition of the SizeDifferenceMetric class.
 *
 * \copyright
 * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#pragma once

#include "ElementQualityMetric.h"

namespace MeshLib
{

/**
 * Calculates the quality of mesh elements based on the difference of element
 * size in comparison to the size of its neighbors.
 */
class SizeDifferenceMetric : public ElementQualityMetric
{
public:
    explicit SizeDifferenceMetric(Mesh const& mesh);
    ~SizeDifferenceMetric() override = default;

    void calculateQuality() override;
};
}  // namespace MeshLib
back to top