From 672f3ac0c1f907a853f65b4dc591fd52013c061f Mon Sep 17 00:00:00 2001 From: Clement Jamin Date: Fri, 13 Mar 2015 17:09:46 +0100 Subject: [PATCH] Bug fix: go one step further in the recursive call --- .../include/CGAL/Tangential_complex/Simplicial_complex.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tangential_complex/include/CGAL/Tangential_complex/Simplicial_complex.h b/Tangential_complex/include/CGAL/Tangential_complex/Simplicial_complex.h index 3e304742f64..3ef449dfa9c 100644 --- a/Tangential_complex/include/CGAL/Tangential_complex/Simplicial_complex.h +++ b/Tangential_complex/include/CGAL/Tangential_complex/Simplicial_complex.h @@ -95,6 +95,7 @@ public: combinations(*it_Cf, k + 1, std::back_inserter(k_faces)); for (const auto &f2 : k_faces) // CJTODO C++1 { + // Skip F if (f2 != it_map_elt->first) { Cofaces_map::iterator it_comb_in_map = cofaces_map.find(f2); @@ -119,7 +120,7 @@ public: } // Collapse the lower dimension simplices - if (k > 1) + if (k > 0) collapse(max_simplex_dim - 1); }