From e8b3138318f5d4ce33194c9a3b66ab9b52807833 Mon Sep 17 00:00:00 2001 From: rahv <karsten.rink@ufz.de> Date: Wed, 28 Jan 2015 18:22:57 +0100 Subject: [PATCH] added check for holes to mesh validation dialog in GUI --- Applications/DataExplorer/DataView/MeshAnalysis.ui | 9 ++++++++- .../DataExplorer/DataView/MeshAnalysisDialog.cpp | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Applications/DataExplorer/DataView/MeshAnalysis.ui b/Applications/DataExplorer/DataView/MeshAnalysis.ui index 70db2547006..d97b90e66a9 100644 --- a/Applications/DataExplorer/DataView/MeshAnalysis.ui +++ b/Applications/DataExplorer/DataView/MeshAnalysis.ui @@ -7,7 +7,7 @@ <x>0</x> <y>0</y> <width>483</width> - <height>650</height> + <height>787</height> </rect> </property> <property name="windowTitle"> @@ -348,6 +348,13 @@ </property> </widget> </item> + <item row="5" column="0" colspan="4"> + <widget class="QLabel" name="meshHoleOutputLabel"> + <property name="text"> + <string/> + </property> + </widget> + </item> </layout> </widget> </item> diff --git a/Applications/DataExplorer/DataView/MeshAnalysisDialog.cpp b/Applications/DataExplorer/DataView/MeshAnalysisDialog.cpp index 5898b09ede7..fd3f3d5e866 100644 --- a/Applications/DataExplorer/DataView/MeshAnalysisDialog.cpp +++ b/Applications/DataExplorer/DataView/MeshAnalysisDialog.cpp @@ -60,6 +60,10 @@ void MeshAnalysisDialog::on_startButton_pressed() *mesh, this->zeroVolumeThreshold->text().toDouble() + std::numeric_limits<double>::epsilon())); this->elementsGroupBox->setTitle("Elements (out of " + QString::number(mesh->getNElements()) + ")"); this->elementsMsgOutput(element_error_codes); + + unsigned const n_holes (MeshLib::MeshValidation::detectHoles(*mesh)); + if (n_holes>0) + this->meshHoleOutputLabel->setText("<strong>" + QString::number(n_holes) + " hole(s) found within the mesh</strong>"); } void MeshAnalysisDialog::nodesMsgOutput(std::vector<std::size_t> const& node_ids, std::vector<std::size_t> const& collapsibleNodeIds) -- GitLab