summaryrefslogtreecommitdiff
path: root/src/Simplex_tree/example
diff options
context:
space:
mode:
Diffstat (limited to 'src/Simplex_tree/example')
-rw-r--r--src/Simplex_tree/example/simplex_tree_from_alpha_shapes_3.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Simplex_tree/example/simplex_tree_from_alpha_shapes_3.cpp b/src/Simplex_tree/example/simplex_tree_from_alpha_shapes_3.cpp
index e6ba6072..1ecc667e 100644
--- a/src/Simplex_tree/example/simplex_tree_from_alpha_shapes_3.cpp
+++ b/src/Simplex_tree/example/simplex_tree_from_alpha_shapes_3.cpp
@@ -26,6 +26,7 @@
#include <CGAL/iterator.h>
#include <fstream>
+#include <cmath>
#include "gudhi/graph_simplicial_complex.h"
#include "gudhi/Simplex_tree.h"
@@ -217,7 +218,7 @@ int main (int argc, char * const argv[])
#ifdef DEBUG_TRACES
std::cout << "filtration = " << *the_alpha_value_iterator << std::endl;
#endif // DEBUG_TRACES
- simplex_tree.insert(the_simplex_tree, *the_alpha_value_iterator);
+ simplex_tree.insert(the_simplex_tree, std::sqrt(*the_alpha_value_iterator));
if (the_alpha_value_iterator != the_alpha_values.end())
++the_alpha_value_iterator;
else