Skip to content

Commit

Permalink
Add some traces to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentRouvreau committed Feb 11, 2025
1 parent d80da71 commit 8e15b84
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Alpha_complex/test/Delaunay_complex_unit_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ using Simplex_handle = Simplex_tree::Simplex_handle;

template<class CGAL_kernel>
void compare_delaunay_complex_simplices() {
std::clog << "*****************************************************************************************************\n";
std::clog << "***************************************************************************************************\n";
using Point = typename CGAL_kernel::Point_d;
std::vector<Point> points;
// 50 points on a 4-sphere
Expand Down Expand Up @@ -55,8 +55,14 @@ void compare_delaunay_complex_simplices() {
std::clog << "Check simplices from alpha complex filtration values when output_squared_values is true\n";
// Check all the simplices from alpha complex are in the Delaunay complex
for (auto f_simplex : stree_from_alpha_complex.complex_simplex_range()) {
std::clog << "[";
for (auto vertex : stree_from_alpha_complex.simplex_vertex_range(f_simplex)) std::clog << vertex << " ";
std::clog << "] - ";

Simplex_handle sh = stree_from_alpha_sqrt.find(stree_from_alpha_complex.simplex_vertex_range(f_simplex));
BOOST_CHECK(sh != stree_from_alpha_sqrt.null_simplex());
std::clog << "alpha_sqrt = " << stree_from_alpha_sqrt.filtration(sh);
std::clog << " vs. sqrt(alpha) = " << std::sqrt(stree_from_alpha_complex.filtration(f_simplex)) << "\n";
GUDHI_TEST_FLOAT_EQUALITY_CHECK(stree_from_alpha_sqrt.filtration(sh),
std::sqrt(stree_from_alpha_complex.filtration(f_simplex)));
}
Expand Down

0 comments on commit 8e15b84

Please sign in to comment.