Loading...
Searching...
No Matches
cell.tpp
1/*---------------------------------------------------------------------------*\
2 *
3 * bitpit
4 *
5 * Copyright (C) 2015-2021 OPTIMAD engineering Srl
6 *
7 * -------------------------------------------------------------------------
8 * License
9 * This file is part of bitpit.
10 *
11 * bitpit is free software: you can redistribute it and/or modify it
12 * under the terms of the GNU Lesser General Public License v3 (LGPL)
13 * as published by the Free Software Foundation.
14 *
15 * bitpit is distributed in the hope that it will be useful, but WITHOUT
16 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18 * License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with bitpit. If not, see <http://www.gnu.org/licenses/>.
22 *
23\*---------------------------------------------------------------------------*/
24
25#ifndef __BITPIT_CELL_TPP__
26#define __BITPIT_CELL_TPP__
27
28namespace bitpit {
29
46template<class QualifiedCell>
47QualifiedCellHalfEdge<QualifiedCell>::QualifiedCellHalfEdge(QualifiedCell &cell, int edge, Winding winding)
48 : ElementHalfEdge<QualifiedCell>(cell, edge, winding)
49{
50}
51
57template<class QualifiedCell>
59{
60 return static_cast<QualifiedCell &>(this->getElement());
61}
62
82template<class QualifiedCell>
83QualifiedCellHalfFace<QualifiedCell>::QualifiedCellHalfFace(QualifiedCell &cell, int face, Winding winding)
84 : ElementHalfFace<QualifiedCell>(cell, face, winding)
85{
86}
87
93template<class QualifiedCell>
95{
96 return static_cast<QualifiedCell &>(this->getElement());
97}
98
99}
100
101#endif
The ElementHalfEdge class defines element half-edge items.
Definition element.hpp:257
The ElementHalfFace class defines element half-faces.
Definition element.hpp:272
QualifiedCellHalfEdge(QualifiedCell &cell, int edge, Winding winding=Winding::WINDING_NATURAL)
Definition cell.tpp:47
QualifiedCell & getCell() const
Definition cell.tpp:58
QualifiedCellHalfFace(QualifiedCell &cell, int face, Winding winding=Winding::WINDING_NATURAL)
Definition cell.tpp:83
QualifiedCell & getCell() const
Definition cell.tpp:94
--- layout: doxygen_footer ---