improved problems with adjacent (to prism layer) boundaries
[engrid-github.git] / src / libengrid / smoothandswapsurface.cpp
blobe6e83dc1f0f31d27c6429513429e211ed85fec9c
1 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 // + +
3 // + This file is part of enGrid. +
4 // + +
5 // + Copyright 2008-2014 enGits GmbH +
6 // + +
7 // + enGrid is free software: you can redistribute it and/or modify +
8 // + it under the terms of the GNU General Public License as published by +
9 // + the Free Software Foundation, either version 3 of the License, or +
10 // + (at your option) any later version. +
11 // + +
12 // + enGrid is distributed in the hope that it will be useful, +
13 // + but WITHOUT ANY WARRANTY; without even the implied warranty of +
14 // + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
15 // + GNU General Public License for more details. +
16 // + +
17 // + You should have received a copy of the GNU General Public License +
18 // + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
19 // + +
20 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22 #include "smoothandswapsurface.h"
24 SmoothAndSwapSurface::SmoothAndSwapSurface()
26 EG_TYPENAME;
27 m_PerformGeometricTests = false;
28 m_UseProjectionForSmoothing = false;
29 m_UseNormalCorrectionForSmoothing = false;
30 m_AllowFeatureEdgeSwapping = true;
33 void SmoothAndSwapSurface::operate()
35 prepare();
36 cout << "1st Delaunay swap" << endl;
37 swap();
38 cout << "smoothing" << endl;
39 for (int i = 0; i < 1; ++i) {
40 smooth(1);
42 cout << "2nd Delaunay swap" << endl;
43 swap();
44 createIndices(m_Grid);
45 updateNodeInfo();
46 computeMeshDensity();