From c4760da918bd8cefdfb4aeb579ee79cccaea60b6 Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Tue, 3 Dec 2024 10:48:57 +0100 Subject: [PATCH] in OpenMesh, the outgoing halfedge of a boundary vertex must be the boundary halfedge --- BGL/include/CGAL/boost/graph/IO/OM.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BGL/include/CGAL/boost/graph/IO/OM.h b/BGL/include/CGAL/boost/graph/IO/OM.h index 9c582267ae19..052e6915b5a9 100644 --- a/BGL/include/CGAL/boost/graph/IO/OM.h +++ b/BGL/include/CGAL/boost/graph/IO/OM.h @@ -110,6 +110,11 @@ bool write_OM(std::string fname, const Graph& g, VPM vpm, VFeaturePM vfpm, EFeat omesh.status(omv).set_feature(isfeature); } + for (auto v : vertices(omesh)) + { + adjust_border_halfedge(v, omesh); + } + return OpenMesh::IO::write_mesh(omesh, fname, OpenMesh::IO::Options::Status, precision); } } // end of internal namespace