From 7169811f60d4975974c04b1ee2b1359fc9b6072c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Tue, 23 Nov 2021 10:21:20 +0100 Subject: [PATCH] remove extra ; and fix indentation --- .../CGAL/boost/graph/Euler_operations.h | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/BGL/include/CGAL/boost/graph/Euler_operations.h b/BGL/include/CGAL/boost/graph/Euler_operations.h index 598b7cbb3c4..0808e164d43 100644 --- a/BGL/include/CGAL/boost/graph/Euler_operations.h +++ b/BGL/include/CGAL/boost/graph/Euler_operations.h @@ -1623,37 +1623,37 @@ collapse_edge(typename boost::graph_traits::edge_descriptor v0v1, } else { - if (lTopFaceExists) - { - if (!(is_border(edges_to_erase[0],g))){ - join_face(edges_to_erase[0],g); - join_vertex(pq,g); - return q; - } - if( is_border(opposite(next(pq,g),g),g) ) - { - // q will be removed, swap it with p - internal::swap_vertices(p, q, g); - } - remove_face(opposite(edges_to_erase[0],g),g); - return q; - } - - if (! (is_border(edges_to_erase[0],g))){ - // q will be removed, swap it with p - internal::swap_vertices(p, q, g); + if (lTopFaceExists) + { + if (!(is_border(edges_to_erase[0],g))){ join_face(edges_to_erase[0],g); - join_vertex(qp,g); + join_vertex(pq,g); return q; } - if(!is_border(opposite(next(qp,g),g),g)) + if( is_border(opposite(next(pq,g),g),g) ) { // q will be removed, swap it with p internal::swap_vertices(p, q, g); } remove_face(opposite(edges_to_erase[0],g),g); return q; - }; + } + + if (! (is_border(edges_to_erase[0],g))){ + // q will be removed, swap it with p + internal::swap_vertices(p, q, g); + join_face(edges_to_erase[0],g); + join_vertex(qp,g); + return q; + } + if(!is_border(opposite(next(qp,g),g),g)) + { + // q will be removed, swap it with p + internal::swap_vertices(p, q, g); + } + remove_face(opposite(edges_to_erase[0],g),g); + return q; + } } /// performs an edge flip, rotating the edge pointed by