From 2d455ebf57fdda8571cf84d3f98e4471e370c798 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Thu, 16 May 2024 08:04:32 +0100 Subject: [PATCH] improvement but not yet a fix --- .../include/CGAL/Triangulation_on_sphere_face_base_2.h | 2 +- .../test/Triangulation_on_sphere_2/issue_8200.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Triangulation_on_sphere_2/include/CGAL/Triangulation_on_sphere_face_base_2.h b/Triangulation_on_sphere_2/include/CGAL/Triangulation_on_sphere_face_base_2.h index cbd76d0081a..84bbc11e136 100644 --- a/Triangulation_on_sphere_2/include/CGAL/Triangulation_on_sphere_face_base_2.h +++ b/Triangulation_on_sphere_2/include/CGAL/Triangulation_on_sphere_face_base_2.h @@ -70,7 +70,7 @@ operator<<(std::ostream &os, const Triangulation_on_sphere_face_base_2 & { // non combinatorial information. Default = point os << static_cast(f); - os << f.is_ghost() ? " 0" : " 1"; + os << (f.is_ghost() ? " 1" : " 0"); return os; } diff --git a/Triangulation_on_sphere_2/test/Triangulation_on_sphere_2/issue_8200.cpp b/Triangulation_on_sphere_2/test/Triangulation_on_sphere_2/issue_8200.cpp index e958e6c54d8..3f66eda1ff9 100644 --- a/Triangulation_on_sphere_2/test/Triangulation_on_sphere_2/issue_8200.cpp +++ b/Triangulation_on_sphere_2/test/Triangulation_on_sphere_2/issue_8200.cpp @@ -38,7 +38,7 @@ int main(int, char**) std::cout << dtos.number_of_solid_faces() << " solid faces" << std::endl; std::cout << dtos.number_of_ghost_faces() << " ghost faces" << std::endl; } - + assert(dtos.is_valid()); std::ofstream out("dtos.txt"); out.precision(17); out << dtos << std::endl;