From 1860c2f5e93b789fa14095668dc0b62d94dddfa5 Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Tue, 13 Dec 2016 12:36:20 +0000 Subject: example point display git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/tangential_test@1864 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 1a97b8a9c1f7aff6cdeae8a2fa0eef911f4a5596 --- src/Tangential_complex/example/example.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Tangential_complex/example/example.cpp b/src/Tangential_complex/example/example.cpp index fa25ac53..f740cb1c 100644 --- a/src/Tangential_complex/example/example.cpp +++ b/src/Tangential_complex/example/example.cpp @@ -41,6 +41,9 @@ int main(void) { std::cout << "TC vertices = " << tc.number_of_vertices() << " - simplices = " << num_inc.num_simplices << " - inconsistencies = " << num_inc.num_inconsistent_simplices << std::endl; + std::cout << "TC point[0] " << tc.get_point(0) << " - point[1] " << tc.get_point(1) << + " - point[2] " << tc.get_point(2) << " - point[3] " << tc.get_point(3) << std::endl; + // Export the TC into a Simplex_tree Gudhi::Simplex_tree<> stree; int max_dim = tc.create_complex(stree); @@ -67,7 +70,7 @@ int main(void) { stree.initialize_filtration(); std::cout << "********************************************************************\n"; - std::cout << "* The complex contains " << stree.num_simplices() << " simplices\n"; + std::cout << "* The complex contains " << stree.num_simplices() << " simplices"; std::cout << " - dimension " << stree.dimension() << " - filtration " << stree.filtration() << "\n"; std::cout << "* Iterator on Simplices in the filtration, with [filtration value]:\n"; for (auto f_simplex : stree.filtration_simplex_range()) { -- cgit v1.2.3