From 22c1ea15ff036dbffca4bde35bdb5a569b7adeba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Tue, 29 Nov 2016 17:24:48 +0100 Subject: [PATCH] Fixed the comparison operator in the seam_mesh's halfedge_descriptor A simple comparison between the halfedge_descriptor of the base mesh is enough --- BGL/include/CGAL/boost/graph/Seam_mesh.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BGL/include/CGAL/boost/graph/Seam_mesh.h b/BGL/include/CGAL/boost/graph/Seam_mesh.h index 4ea6a4d901a..5657429255a 100644 --- a/BGL/include/CGAL/boost/graph/Seam_mesh.h +++ b/BGL/include/CGAL/boost/graph/Seam_mesh.h @@ -72,6 +72,9 @@ struct Seam_mesh_halfedge_descriptor bool operator<(const Seam_mesh_halfedge_descriptor& other) const { + if(tmhd == other.tmhd) + return static_cast(seam) < static_cast(other.seam); + return tmhd < other.tmhd; }