From 91448f9ae1c13c74441f521a25d29375bc4643ee Mon Sep 17 00:00:00 2001 From: glisse Date: Thu, 29 Mar 2018 15:17:42 +0000 Subject: Use CGAL::NT_converter to convert filtration values. Alpha_complex may produce something different from what the Simplex_tree expects, convert it explicitly. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@3317 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: d6c7492bbf48401a9f63f6462c7704e380eff6e1 --- src/Alpha_complex/include/gudhi/Alpha_complex.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Alpha_complex/include/gudhi/Alpha_complex.h') diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex.h b/src/Alpha_complex/include/gudhi/Alpha_complex.h index 63c6675c..91305032 100644 --- a/src/Alpha_complex/include/gudhi/Alpha_complex.h +++ b/src/Alpha_complex/include/gudhi/Alpha_complex.h @@ -34,6 +34,7 @@ #include #include #include // for CGAL::Identity_property_map +#include #include #include @@ -323,8 +324,9 @@ class Alpha_complex { if (f_simplex_dim > 0) { // squared_radius function initialization Squared_Radius squared_radius = kernel_.compute_squared_radius_d_object(); + CGAL::NT_converter cv; - alpha_complex_filtration = squared_radius(pointVector.begin(), pointVector.end()); + alpha_complex_filtration = cv(squared_radius(pointVector.begin(), pointVector.end())); } complex.assign_filtration(f_simplex, alpha_complex_filtration); #ifdef DEBUG_TRACES -- cgit v1.2.3