diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-10-03 13:39:50 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-10-03 13:39:50 +0000 |
commit | 66cdca82e9ca86fcdfa2a08c6003a5661d802cf3 (patch) | |
tree | 945ae51a3cdd1f4515ce9832a8ee798cc725ea72 /src/Alpha_complex | |
parent | e17f35542e727a75f123c9454726a85673879655 (diff) |
No need of complex.dimension(void). It reduces the concept.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/alpha_complex_create_complex@1608 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 95cf6a9b453349e032c1d553bb9b5c3981c92b0a
Diffstat (limited to 'src/Alpha_complex')
-rw-r--r-- | src/Alpha_complex/concept/Simplicial_complex_for_alpha.h | 3 | ||||
-rw-r--r-- | src/Alpha_complex/include/gudhi/Alpha_complex.h | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/Alpha_complex/concept/Simplicial_complex_for_alpha.h b/src/Alpha_complex/concept/Simplicial_complex_for_alpha.h index 24aab215..0cbf1769 100644 --- a/src/Alpha_complex/concept/Simplicial_complex_for_alpha.h +++ b/src/Alpha_complex/concept/Simplicial_complex_for_alpha.h @@ -41,9 +41,6 @@ struct SimplicialComplexForAlpha { /** Returns the number of vertices in the simplicial complex. */ std::size_t num_vertices(); - /** Gets the simplicial complex dimension. */ - int dimension(); - /** Sets the simplicial complex dimension. */ void set_dimension(int dimension); diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex.h b/src/Alpha_complex/include/gudhi/Alpha_complex.h index cda40021..0613ca7c 100644 --- a/src/Alpha_complex/include/gudhi/Alpha_complex.h +++ b/src/Alpha_complex/include/gudhi/Alpha_complex.h @@ -292,7 +292,7 @@ class Alpha_complex { // Will be re-used many times Vector_of_CGAL_points pointVector; // ### For i : d -> 0 - for (int decr_dim = complex.dimension(); decr_dim >= 0; decr_dim--) { + for (int decr_dim = triangulation_->maximal_dimension(); decr_dim >= 0; decr_dim--) { // ### Foreach Sigma of dim i for (Simplex_handle f_simplex : complex.skeleton_simplex_range(decr_dim)) { int f_simplex_dim = complex.dimension(f_simplex); |