Instructions if the OK-Button has been pressed.
141{
142 if (this->
_selGeo->stringList().empty())
143 {
145 "No geometry selected. Geometric data\n is necessary for mesh "
146 "generation.");
147 return;
148 }
149
150 std::vector<std::string> selectedObjects =
152 unsigned max_number_of_points_in_quadtree_leaf(10);
153 double mesh_density_scaling_pnts(0.5);
154 double mesh_density_scaling_stations(0.05);
155 double val4(-1);
156
157 if (this->radioAdaptive->isChecked())
158 {
159 double const min_scaling_factor(1e-10);
160 max_number_of_points_in_quadtree_leaf =
161 BaseLib::str2number<unsigned>(param1->text().toStdString());
162 if (max_number_of_points_in_quadtree_leaf == 0)
163 {
164 max_number_of_points_in_quadtree_leaf = 10;
165 }
166 mesh_density_scaling_pnts = fabs(param2->text().toDouble());
167 if (mesh_density_scaling_pnts < min_scaling_factor)
168 {
169 mesh_density_scaling_pnts = min_scaling_factor;
170 }
171 mesh_density_scaling_stations = param3->text().toDouble();
172 if (mesh_density_scaling_stations < min_scaling_factor)
173 {
174 mesh_density_scaling_stations = min_scaling_factor;
175 }
176 }
177 else
178 {
179 val4 = param4->text().toDouble();
180 }
181
182 bool delete_geo_file = this->geoFileDelete->isChecked();
184 max_number_of_points_in_quadtree_leaf,
185 mesh_density_scaling_pnts,
186 mesh_density_scaling_stations,
187 val4,
188 delete_geo_file);
189 this->done(QDialog::Accepted);
190}
void requestMeshing(std::vector< std::string > &, unsigned, double, double, double, bool)
static void box(const QString &e)
std::vector< std::string > getSelectedObjects(QStringList const &list)