diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/Face_graph_output_builder.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/Face_graph_output_builder.h index 7a2876e1d9f..eed9730baf5 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/Face_graph_output_builder.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/Face_graph_output_builder.h @@ -902,8 +902,11 @@ public: if ( is_dangling_edge(ids.first, ids.second, h1, tm1, is_node_of_degree_one) || is_dangling_edge(ids.first, ids.second, h2, tm2, is_node_of_degree_one) ) { - impossible_operation.set(); - return; + if (!used_to_clip_a_surface) + { + impossible_operation.set(); + return; + } } is_patch_inside_tm2.set(patch_id_p2); } @@ -920,8 +923,11 @@ public: if ( is_dangling_edge(ids.first, ids.second, h1, tm1, is_node_of_degree_one) || is_dangling_edge(ids.first, ids.second, h2, tm2, is_node_of_degree_one) ) { - impossible_operation.set(); - return; + if (!used_to_clip_a_surface) + { + impossible_operation.set(); + return; + } } is_patch_inside_tm1.set(patch_id_q2); is_patch_inside_tm2.set(patch_id_p1);