diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-12-13 11:53:31 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-12-13 11:53:31 +0000 |
commit | 0c277327bb7fbbc096825ed817458440930cca33 (patch) | |
tree | 4b20865be4a3fc25e11958d4d57c845532bd9f8e /src/Tangential_complex/example | |
parent | da92ae2f10d715b801f55f8f651fea8a4979f263 (diff) |
Example modification
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/tangential_test@1863 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 0706eed9656c214bbabfa9a8da2f800c2afdf140
Diffstat (limited to 'src/Tangential_complex/example')
-rw-r--r-- | src/Tangential_complex/example/example.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Tangential_complex/example/example.cpp b/src/Tangential_complex/example/example.cpp index cd0f121f..fa25ac53 100644 --- a/src/Tangential_complex/example/example.cpp +++ b/src/Tangential_complex/example/example.cpp @@ -43,7 +43,9 @@ int main(void) { // Export the TC into a Simplex_tree Gudhi::Simplex_tree<> stree; - tc.create_complex(stree); + int max_dim = tc.create_complex(stree); + stree.set_dimension(max_dim); + stree.initialize_filtration(); std::cout << "********************************************************************\n"; std::cout << "* The complex contains " << stree.num_simplices() << " simplices"; @@ -60,7 +62,9 @@ int main(void) { tc.fix_inconsistencies_using_perturbation(0.01, 30.0); // Export the TC into a Simplex_tree - tc.create_complex(stree); + max_dim = tc.create_complex(stree); + stree.set_dimension(max_dim); + stree.initialize_filtration(); std::cout << "********************************************************************\n"; std::cout << "* The complex contains " << stree.num_simplices() << " simplices\n"; |