swh:1:snp:f521c49ab17ef7db6ec70b2430e1ed203f50383f
Raw File
Tip revision: 902b1c0c2e4cb6193593843906ec5682b89f807c authored by Tobias Meisel on 08 March 2021, 12:59:46 UTC
GocadTSurfaceReader: Add check for line endings
Tip revision: 902b1c0
VertexRule.h
/**
 * \file
 * \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

namespace MeshLib
{

class Element;

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

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

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

    /// 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 0D elements this always returns true.
    static bool testElementNodeOrder(const Element* /*e*/) { return true; }

};

}  // namespace MeshLib
back to top