From 12eb3ff18cb70e95abf3ea85d85ef3c655ce402b Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 14 May 2025 15:00:44 +0100 Subject: [PATCH] PMP: Make stitch_borders deterministic --- .../include/CGAL/Polygon_mesh_processing/stitch_borders.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/stitch_borders.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/stitch_borders.h index 343007a83b2..53a5217ca66 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/stitch_borders.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/stitch_borders.h @@ -106,9 +106,9 @@ struct Default_halfedges_keeper { typedef typename boost::graph_traits::halfedge_descriptor halfedge_descriptor; - halfedge_descriptor operator()(const halfedge_descriptor h1, const halfedge_descriptor h2) const + halfedge_descriptor operator()(const halfedge_descriptor h1, const halfedge_descriptor) const { - return (h1 < h2) ? h1 : h2; // Arbitrary preference + return h1; } };