From 0c277327bb7fbbc096825ed817458440930cca33 Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Tue, 13 Dec 2016 11:53:31 +0000 Subject: 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 --- src/Tangential_complex/example/example.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/Tangential_complex') 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"; -- cgit v1.2.3