From 50dfffcedf2263eadc1936c97f7167d4faee8671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Thu, 15 Feb 2018 09:18:12 +0100 Subject: [PATCH] Sort halfedge of coplanar faces intersecting in autorefinement case Since the faces are coming from the same mesh... --- .../internal/Corefinement/intersection_impl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/intersection_impl.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/intersection_impl.h index 430b96b87b2..f5d7471ecd6 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/intersection_impl.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/intersection_impl.h @@ -353,6 +353,8 @@ class Intersection_of_triangle_meshes } Key key(ipt.type_1, ipt.type_2, h1, h2); + if (&tm1==&tm2 && h1>h2) + key=Key(ipt.type_2, ipt.type_1, h2, h1); std::pair::iterator,bool> res= coplanar_node_map.insert(std::make_pair(key,current_node+1));