2 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 // + This file is part of enGrid. +
6 // + Copyright 2008-2012 enGits GmbH +
8 // + enGrid is free software: you can redistribute it and/or modify +
9 // + it under the terms of the GNU General Public License as published by +
10 // + the Free Software Foundation, either version 3 of the License, or +
11 // + (at your option) any later version. +
13 // + enGrid is distributed in the hope that it will be useful, +
14 // + but WITHOUT ANY WARRANTY; without even the implied warranty of +
15 // + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
16 // + GNU General Public License for more details. +
18 // + You should have received a copy of the GNU General Public License +
19 // + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
21 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
23 #include "guisurfacemesher.h"
25 void GuiSurfaceMesher::before()
27 m_Ui
.m_SpinBoxIterations
->setValue(m_NumMaxIter
);
28 m_Ui
.m_SpinBoxDelaunaySweeps
->setValue(m_NumDelaunaySweeps
);
29 m_Ui
.m_SpinBoxSmoothSteps
->setValue(m_NumSmoothSteps
);
30 m_Ui
.m_CheckBoxSmooth
->setChecked(m_CorrectCurvature
);
31 m_Ui
.m_CheckBoxBCodesFeatures
->setChecked(m_BCodeFeatureDefinition
);
34 void GuiSurfaceMesher::operate()
36 setMaxNumIterations(m_Ui
.m_SpinBoxIterations
->value());
37 setNumDelaunaySweeps(m_Ui
.m_SpinBoxDelaunaySweeps
->value());
38 setNumSmoothSteps(m_Ui
.m_SpinBoxSmoothSteps
->value());
39 setCorrectCurvature(m_Ui
.m_CheckBoxSmooth
->isChecked());
40 setDeleteNodes(m_Ui
.m_CheckBoxDelete
->isChecked());
41 setInsertNodes(m_Ui
.m_CheckBoxInsert
->isChecked());
42 setBCodesFeatureDefinition(m_Ui
.m_CheckBoxBCodesFeatures
->isChecked());
43 SurfaceMesher::operate();