updated to modern VTK
[engrid-github.git] / src / libengrid / guiconverttopolymesh.cpp
bloba3b5dd45b0f71d9458decb8665ff73a46f7e6b26
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 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21 #include "guiconverttopolymesh.h"
22 #include "converttopolymesh.h"
24 void GuiConvertToPolyMesh::operate()
26 ConvertToPolyMesh convert;
27 if (m_Ui.checkBoxOptimise->isChecked()) {
28 convert.setOptimiseOn();
30 if (m_Ui.checkBoxSplitConcaveFaces->isChecked()) {
31 convert.setSplitFacesOn();
33 if (m_Ui.checkBoxSplitConcaveCells->isChecked()) {
34 convert.setSplitCellsOn();
36 convert.setPullInFactor(m_Ui.horizontalSliderPullIn->value()*0.01);
37 createFeatureBcs(m_Ui.m_DoubleSpinBoxFeatureAngle->value());
38 convert();
39 restoreNormalBcs();