Skip to content
Snippets Groups Projects
Commit c66cba3f authored by Tom Fischer's avatar Tom Fischer
Browse files

Merge pull request #974 from rinkk/MeshAnalysisDialogFix

MeshAnalysisDialog fix
parents b5171512 3ffb6617
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ void MeshAnalysisDialog::nodesMsgOutput(std::vector<std::size_t> const& node_ids ...@@ -77,7 +77,7 @@ void MeshAnalysisDialog::nodesMsgOutput(std::vector<std::size_t> const& node_ids
nodes_output += "No unused nodes found."; nodes_output += "No unused nodes found.";
else 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) for (std::size_t i=0; i<nNodeIds; ++i)
nodes_output += (QString::number(node_ids[i]) + ", "); nodes_output += (QString::number(node_ids[i]) + ", ");
} }
......
...@@ -126,6 +126,9 @@ MeshValidation::ElementErrorCodeOutput(const std::vector<ElementErrorCode> &erro ...@@ -126,6 +126,9 @@ MeshValidation::ElementErrorCodeOutput(const std::vector<ElementErrorCode> &erro
unsigned MeshValidation::detectHoles(MeshLib::Mesh const& mesh) unsigned MeshValidation::detectHoles(MeshLib::Mesh const& mesh)
{ {
if (mesh.getDimension() == 1)
return 0;
MeshLib::Mesh* boundary_mesh (MeshSurfaceExtraction::getMeshBoundary(mesh)); MeshLib::Mesh* boundary_mesh (MeshSurfaceExtraction::getMeshBoundary(mesh));
std::vector<MeshLib::Element*> const& elements (boundary_mesh->getElements()); std::vector<MeshLib::Element*> const& elements (boundary_mesh->getElements());
......
...@@ -57,7 +57,7 @@ public: ...@@ -57,7 +57,7 @@ public:
* Tests if holes are located within the mesh. * 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 * 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 * 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, * 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. * e.g. using the LayeredVolume-class, where more than two 2D elements may share an edge.
* @param mesh The mesh that is tested * @param mesh The mesh that is tested
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment