From 351059be74b4f613d798ca4364a0e37202c3f378 Mon Sep 17 00:00:00 2001 From: glisse Date: Sat, 16 Apr 2016 07:24:53 +0000 Subject: Minor tweaks to alpha-complex * use the dimension of the kernel for the TDS * recycle a vector git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@1134 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 590f625287629dd041afd5ce479c99b48a476b64 --- src/Alpha_complex/include/gudhi/Alpha_complex.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex.h b/src/Alpha_complex/include/gudhi/Alpha_complex.h index ca2b68ca..a1900cb9 100644 --- a/src/Alpha_complex/include/gudhi/Alpha_complex.h +++ b/src/Alpha_complex/include/gudhi/Alpha_complex.h @@ -77,7 +77,7 @@ template> class Alpha_complex : public Simplex_tree<> { public: // Add an int in TDS to save point index in the structure - typedef CGAL::Triangulation_data_structure, CGAL::Triangulation_full_cell > TDS; /** \brief A Delaunay triangulation of a set of points in \f$ \mathbb{R}^D\f$.*/ @@ -287,13 +287,15 @@ class Alpha_complex : public Simplex_tree<> { // -------------------------------------------------------------------------------------------- // -------------------------------------------------------------------------------------------- + // Will be re-used many times + Vector_of_CGAL_points pointVector; // ### For i : d -> 0 for (int decr_dim = dimension(); decr_dim >= 0; decr_dim--) { // ### Foreach Sigma of dim i for (auto f_simplex : skeleton_simplex_range(decr_dim)) { int f_simplex_dim = dimension(f_simplex); if (decr_dim == f_simplex_dim) { - Vector_of_CGAL_points pointVector; + pointVector.clear(); #ifdef DEBUG_TRACES std::cout << "Sigma of dim " << decr_dim << " is"; #endif // DEBUG_TRACES -- cgit v1.2.3