From 69bf76e106bff774d7fde514d46ef41657a5f5ed Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Wed, 23 Oct 2024 12:32:26 +0200 Subject: [PATCH] remove obselete header --- BGL/examples/BGL_OpenMesh/read_OM.h | 62 ----------------------------- 1 file changed, 62 deletions(-) delete mode 100644 BGL/examples/BGL_OpenMesh/read_OM.h diff --git a/BGL/examples/BGL_OpenMesh/read_OM.h b/BGL/examples/BGL_OpenMesh/read_OM.h deleted file mode 100644 index 6c350bad03f9..000000000000 --- a/BGL/examples/BGL_OpenMesh/read_OM.h +++ /dev/null @@ -1,62 +0,0 @@ -#pragma once - -#include -#include - -#include -#include -#include -#include -#include -#include - -namespace CGAL { -namespace IO { - -template -bool read_OM(std::string fname, SM& sm, VSelectionPM vspm, EFeaturePM efpm) -{ - typedef OpenMesh::PolyMesh_ArrayKernelT<> OMesh; - typedef boost::graph_traits::vertex_descriptor om_vertex_descriptor; - typedef boost::graph_traits::vertex_descriptor sm_vertex_descriptor; - typedef boost::graph_traits::halfedge_descriptor om_halfedge_descriptor; - typedef boost::graph_traits::halfedge_descriptor sm_halfedge_descriptor; - - OMesh omesh; - OpenMesh::IO::Options options = OpenMesh::IO::Options::Status; - bool ok = OpenMesh::IO::read_mesh(omesh, fname, options); - if(! ok){ - return false; - } - - std::map v2v; - auto v2vpmap = boost::make_assoc_property_map(v2v); - - std::map h2h; - auto h2hpmap = boost::make_assoc_property_map(h2h); - - CGAL::copy_face_graph(omesh, sm, CGAL::parameters::vertex_to_vertex_map(v2vpmap).halfedge_to_halfedge_map(h2hpmap)); - - if(options.vertex_has_status()){ - for(auto v : vertices(omesh)){ - put(vspm, v2v[v], omesh.status(v).selected()); - } - }else{ - std::cout << "no vertex status" << std::endl; - } - - if(options.edge_has_status()){ - for(auto e : edges(omesh)){ - auto sme = edge(h2h[halfedge(e,omesh)], sm); - put(efpm, sme , omesh.status(OpenMesh::EdgeHandle(e.idx())).feature()); - } - }else{ - std::cout << "no edge status" << std::endl; - } - return true; -} - -} // namespace IO -} // namespace CGAL - -