1
/***************************************************************************
2
* Copyright (c) 2021 Werner Mayer <wmayer[at]users.sourceforge.net> *
4
* This file is part of the FreeCAD CAx development system. *
6
* This library is free software; you can redistribute it and/or *
7
* modify it under the terms of the GNU Library General Public *
8
* License as published by the Free Software Foundation; either *
9
* version 2 of the License, or (at your option) any later version. *
11
* This library is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU Library General Public License for more details. *
16
* You should have received a copy of the GNU Library General Public *
17
* License along with this library; see the file COPYING.LIB. If not, *
18
* write to the Free Software Foundation, Inc., 51 Franklin Street, *
19
* Fifth Floor, Boston, MA 02110-1301, USA *
21
***************************************************************************/
23
#include "PreCompiled.h"
37
for (int i = 0; i < 2; i++) {
38
PIndex[i] = MeshCore::POINT_INDEX_MAX;
39
NIndex[i] = MeshCore::FACET_INDEX_MAX;
43
Edge::Edge(const Edge& e) // NOLINT
44
: MeshCore::MeshGeomEdge(e)
48
for (int i = 0; i < 2; i++) {
49
PIndex[i] = e.PIndex[i];
50
NIndex[i] = e.NIndex[i];
54
Edge::Edge(Edge&& e) // NOLINT
55
: MeshCore::MeshGeomEdge(e)
59
for (int i = 0; i < 2; i++) {
60
PIndex[i] = e.PIndex[i];
61
NIndex[i] = e.NIndex[i];
65
Edge::~Edge() = default;
67
Edge& Edge::operator=(const Edge& e)
69
MeshCore::MeshGeomEdge::operator=(e);
72
for (int i = 0; i < 2; i++) {
73
PIndex[i] = e.PIndex[i];
74
NIndex[i] = e.NIndex[i];
80
Edge& Edge::operator=(Edge&& e)
82
MeshCore::MeshGeomEdge::operator=(e);
85
for (int i = 0; i < 2; i++) {
86
PIndex[i] = e.PIndex[i];
87
NIndex[i] = e.NIndex[i];