OGS
EdgeRule.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6namespace MeshLib
7{
8
9class Element;
10
12{
13public:
15 static const unsigned dimension = 1u;
16
18 static const unsigned n_faces = 0;
19
21 static const unsigned n_edges = 1;
22
24 static const Element* getFace(const Element* /*e*/, unsigned /*i*/) { return nullptr; }
25
30 static bool testElementNodeOrder(Element const& /*e*/) { return true; }
31
32}; /* class */
33
34} // namespace MeshLib
static bool testElementNodeOrder(Element const &)
Definition EdgeRule.h:30
static const unsigned n_edges
Constant: The number of edges.
Definition EdgeRule.h:21
static const unsigned dimension
Constant: Dimension of this mesh element.
Definition EdgeRule.h:15
static const Element * getFace(const Element *, unsigned)
Returns the i-th face of the element.
Definition EdgeRule.h:24
static const unsigned n_faces
Constant: The number of faces.
Definition EdgeRule.h:18