https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: af7c2f31b16f645a0551c8de6ccc4f3c3ee28c3e authored by Lars Bilke on 03 March 2023, 09:52:31 UTC
Merge branch 'jupytext' into 'master'
Tip revision: af7c2f3
EdgeRule.h
/**
 * \file
 * \copyright
 * Copyright (c) 2012-2023, 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

namespace MeshLib
{

class Element;

class EdgeRule
{
public:
    /// Constant: Dimension of this mesh element
    static const unsigned dimension = 1u;

    /// Constant: The number of faces
    static const unsigned n_faces = 0;

    /// Constant: The number of edges
    static const unsigned n_edges = 1;

    /// Returns the i-th face of the element.
    static const Element* getFace(const Element* /*e*/, unsigned /*i*/) { return nullptr; }

    /**
    * Checks if the node order of an element is correct by testing surface normals.
    * For 1D elements this always returns true.
    */
    static bool testElementNodeOrder(Element const& /*e*/) { return true; }

}; /* class */

}  // namespace MeshLib
back to top