diff options
author | glisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-11-30 15:55:45 +0000 |
---|---|---|
committer | glisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-11-30 15:55:45 +0000 |
commit | 009f13b2e9cddfe751a2de31425af6d85cf012ce (patch) | |
tree | 73ba90d3029509f281dcdf723f992510d883572e | |
parent | 7b29ed7cea21e87a0b8c876c52ca525245161dfd (diff) |
No loop for 2 values
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/misc-glisse@2995 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: a0e12ce0db1dfdaf922daa1ed85da4712fd36191
-rw-r--r-- | src/Alpha_complex/utilities/alpha_complex_3d_helper.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Alpha_complex/utilities/alpha_complex_3d_helper.h b/src/Alpha_complex/utilities/alpha_complex_3d_helper.h index 6b3b7d5d..3747923f 100644 --- a/src/Alpha_complex/utilities/alpha_complex_3d_helper.h +++ b/src/Alpha_complex/utilities/alpha_complex_3d_helper.h @@ -52,13 +52,11 @@ Vertex_list from_facet(const Facet& fct) { template <class Vertex_list, class Edge_3> Vertex_list from_edge(const Edge_3& edg) { Vertex_list the_list; - for (auto i = 0; i < 4; i++) { - if ((edg.second == i) || (edg.third == i)) { + for (auto i : { edg.second, edg.third }) { #ifdef DEBUG_TRACES - std::cout << "from edge[" << i << "]=" << edg.first->vertex(i)->point() << std::endl; + std::cout << "from edge[" << i << "]=" << edg.first->vertex(i)->point() << std::endl; #endif // DEBUG_TRACES - the_list.push_back(edg.first->vertex(i)); - } + the_list.push_back(edg.first->vertex(i)); } return the_list; } |