From 5545eee9502d82b7a9bded8b79c7c4bf4c1d27b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 7 Oct 2022 10:34:32 +0200 Subject: [PATCH] Revert "Check face graph validity and not just halfedge validity in post-reading BGL IO" This reverts commit 226f84f2e65848446c740d33d0451a7fa5eb6c7b. This is too strong and prevents reading some broken meshes that we still want to be able to read. Note that even is_valid_halfedge_graph() would return false --- BGL/include/CGAL/boost/graph/IO/Generic_facegraph_builder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BGL/include/CGAL/boost/graph/IO/Generic_facegraph_builder.h b/BGL/include/CGAL/boost/graph/IO/Generic_facegraph_builder.h index b1a3bf3eeaf..331f8a0f44b 100644 --- a/BGL/include/CGAL/boost/graph/IO/Generic_facegraph_builder.h +++ b/BGL/include/CGAL/boost/graph/IO/Generic_facegraph_builder.h @@ -151,7 +151,7 @@ public: put(fcm, f, face_colors[i]); } - return is_valid_face_graph(g); + return is_valid(g); } protected: