diff --git a/Applications/DataExplorer/DataView/MeshAnalysisDialog.cpp b/Applications/DataExplorer/DataView/MeshAnalysisDialog.cpp index 106524efa9bafbe55ecefd79b5ab87d9bfb4da1f..1c0caf2dd665cdc639cdc178d1315b038bf39673 100644 --- a/Applications/DataExplorer/DataView/MeshAnalysisDialog.cpp +++ b/Applications/DataExplorer/DataView/MeshAnalysisDialog.cpp @@ -77,7 +77,7 @@ void MeshAnalysisDialog::nodesMsgOutput(std::vector<std::size_t> const& node_ids nodes_output += "No unused nodes found."; else { - (QString::number(nNodeIds) + " nodes are not part of any element:\n"); + nodes_output += (QString::number(nNodeIds) + " nodes are not part of any element:\n"); for (std::size_t i=0; i<nNodeIds; ++i) nodes_output += (QString::number(node_ids[i]) + ", "); } diff --git a/MeshLib/MeshQuality/MeshValidation.cpp b/MeshLib/MeshQuality/MeshValidation.cpp index 93ae1f94ea5fb0d26a22a200b32e7a9835a893f3..e3e0fa5fdeab6f2668d852c622e8e6f899340c5b 100644 --- a/MeshLib/MeshQuality/MeshValidation.cpp +++ b/MeshLib/MeshQuality/MeshValidation.cpp @@ -126,6 +126,9 @@ MeshValidation::ElementErrorCodeOutput(const std::vector<ElementErrorCode> &erro unsigned MeshValidation::detectHoles(MeshLib::Mesh const& mesh) { + if (mesh.getDimension() == 1) + return 0; + MeshLib::Mesh* boundary_mesh (MeshSurfaceExtraction::getMeshBoundary(mesh)); std::vector<MeshLib::Element*> const& elements (boundary_mesh->getElements()); diff --git a/MeshLib/MeshQuality/MeshValidation.h b/MeshLib/MeshQuality/MeshValidation.h index 7e1512c73888e7bcd2d384b64ab65b04a52693ee..0484de955575e0f4627aa65f434a6ce430a99a0e 100644 --- a/MeshLib/MeshQuality/MeshValidation.h +++ b/MeshLib/MeshQuality/MeshValidation.h @@ -57,7 +57,7 @@ public: * Tests if holes are located within the mesh. * In this context, a hole is a boundary of an element with no neighbor that cannot be reached from * the actual boundary of the mesh. Examples include a missing triangle in a 2D mesh or a missing - * Tetrahedron in a 3D mesh. + * Tetrahedron in a 3D mesh. The method does not work for 1d-meshes. * Note, that this method does not work when complex 3D structures are build from 2D mesh elements, * e.g. using the LayeredVolume-class, where more than two 2D elements may share an edge. * @param mesh The mesh that is tested