From d3c4cb7b00e1db2a5c7e10e392cdd5f34aff7c35 Mon Sep 17 00:00:00 2001 From: Kilian Verhetsel <kilian.verhetsel@student.uclouvain.be> Date: Sun, 11 Dec 2016 18:24:01 +0000 Subject: [PATCH] Removed edges connecting a hexahedron to itself --- Mesh/yamakawa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mesh/yamakawa.cpp b/Mesh/yamakawa.cpp index b6634631fd..62d3a65bb1 100644 --- a/Mesh/yamakawa.cpp +++ b/Mesh/yamakawa.cpp @@ -6385,7 +6385,7 @@ void Recombinator_Graph::execute(GRegion* gr) { Hex *other_hex = data_it->second; vertex_id other_vid = vertex_map[hex_to_tet[other_hex]]; - if (!edge(vid, other_vid, graph).second) { + if (vid != other_vid && !edge(vid, other_vid, graph).second) { add_edge(vid, other_vid, graph); } } -- GitLab