From 425b462d361286822ee0ed7b5fe00881ba312ea3 Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Fri, 5 Dec 2014 13:32:54 +0000 Subject: Moved into trunk git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@341 636b058d-ea47-450e-bf9e-a15bfbe3eedb --- src/Simplex_tree/example/README | 73 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 src/Simplex_tree/example/README (limited to 'src/Simplex_tree/example/README') diff --git a/src/Simplex_tree/example/README b/src/Simplex_tree/example/README new file mode 100644 index 00000000..210c922b --- /dev/null +++ b/src/Simplex_tree/example/README @@ -0,0 +1,73 @@ +To build the example, run in a Terminal: + +cd /path-to-gudhi/ +cmake . +cd /path-to-example/ +make + + +Example of use : + +*** Simple simplex tree construction + +./simple_simplex_tree + +******************************************************************** +EXAMPLE OF SIMPLE INSERTION + * INSERT 0 + + 0 INSERTED + * INSERT 1 + + 1 INSERTED + * INSERT (0,1) + + (0,1) INSERTED + * INSERT 2 + + 2 INSERTED + * INSERT (2,0) + + (2,0) INSERTED + * INSERT (2,1) + + (2,1) INSERTED + * INSERT (2,1,0) + + (2,1,0) INSERTED + * INSERT 3 + + 3 INSERTED + * INSERT (3,0) + + (3,0) INSERTED + * INSERT 0 (already inserted) + - 0 NOT INSERTED + * INSERT (2,1,0) (already inserted) + - (2,1,0) NOT INSERTED +******************************************************************** +* The complex contains 9 simplices + - dimension 2 - filtration 0.4 +* Iterator on Simplices in the filtration, with [filtration value]: + [0.1] 0 + [0.1] 1 + [0.1] 2 + [0.1] 3 + [0.2] 1 0 + [0.2] 2 0 + [0.2] 2 1 + [0.2] 3 0 + [0.3] 2 1 0 + +*** Simplex tree construction with Z/2Z coefficients on points sampling a Klein bottle: + +./simplex_tree_from_file ../../../data/points/Klein_bottle_complex.txt 2 +Insert the 1-skeleton in the simplex tree in 0 s. +Expand the simplex tree in 0 s. +Information of the Simplex Tree: + Number of vertices = 10 Number of simplices = 82 + +with Z/3Z coefficients: + +./simplex_tree_from_file ../../../data/points/Klein_bottle_complex.txt 3 + +Insert the 1-skeleton in the simplex tree in 0 s. +Expand the simplex tree in 0 s. +Information of the Simplex Tree: + Number of vertices = 10 Number of simplices = 106 + +*** Simplex_tree computed from a Alpha-shapes 3: + [ Requires CGAL, GMP and GMPXX to be installed] + +./simplex_tree_from_alpha_shapes_3 ../../../data/points/bunny_5000 -- cgit v1.2.3