https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: 3d6fdd8f952a4af3ef0b8e0a6643b2c300388e01 authored by wenqing on 16 September 2020, 14:38:09 UTC
Merge branch 'Test_Wenqing_3BHEarray' into 'apply_the_known_solutions_to_init'
Tip revision: 3d6fdd8
RadiusEdgeRatioMetric.h
/**
 * \file
 * \author Karsten Rink
 * \date   2014-09-02
 * \brief  Definition of the RadiusEdgeRatioMetric class.
 *
 * \copyright
 * Copyright (c) 2012-2020, 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 ratio between
 * radius of the smallest enclosing sphere and the shortest element edge
 */
class RadiusEdgeRatioMetric : public ElementQualityMetric
{
public:
    explicit RadiusEdgeRatioMetric(Mesh const& mesh);
    ~RadiusEdgeRatioMetric() override = default;

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