From c51c67fa0cdd871ab3f65101e15f45850bd22bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Wed, 8 Feb 2017 11:08:20 +0100 Subject: [PATCH] Fixed Seam_mesh's intrinsic UV map --- .../CGAL/boost/graph/properties_Seam_mesh.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/BGL/include/CGAL/boost/graph/properties_Seam_mesh.h b/BGL/include/CGAL/boost/graph/properties_Seam_mesh.h index 044c9b80890..63e825bbb4e 100644 --- a/BGL/include/CGAL/boost/graph/properties_Seam_mesh.h +++ b/BGL/include/CGAL/boost/graph/properties_Seam_mesh.h @@ -86,20 +86,16 @@ public: // return map[target(hd, mesh.mesh())]; //} - inline friend reference get(const Self& pm, key_type k) + inline friend reference get(const Self& pm, key_type vd) { - return get(pm.map, k); + typename boost::graph_traits::halfedge_descriptor hd = vd; + return get(pm.map, target(hd, pm.mesh.mesh())); } - inline friend void put(const Self& pm, key_type k, const value_type& v) + inline friend void put(const Self& pm, key_type vd, const value_type& uv) { - typedef typename boost::graph_traits::halfedge_descriptor halfedge_descriptor; - BOOST_FOREACH(halfedge_descriptor hd, - halfedges_around_target(halfedge(k, pm.mesh), pm.mesh)){ - if(!hd.seam){ - put(pm.map, target(hd, pm.mesh), v); - } - } + typename boost::graph_traits::halfedge_descriptor hd = vd; + put(pm.map, target(hd, pm.mesh.mesh()), uv); } private: