diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/face_graph_utils.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/face_graph_utils.h index 420c72f2163..70b701eda53 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/face_graph_utils.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/face_graph_utils.h @@ -230,9 +230,9 @@ triangulate_a_face( Node_id i0=cdt_v0->info(), i1=cdt_v1->info(), i2=cdt_v2->info(); - CGAL_assertion(edge_to_hedge.count(std::make_pair(i0,i1))); - CGAL_assertion(edge_to_hedge.count(std::make_pair(i1,i2))); - CGAL_assertion(edge_to_hedge.count(std::make_pair(i2,i0))); + CGAL_assertion(edge_to_hedge.count(std::make_pair(i0,i1))!= 0); + CGAL_assertion(edge_to_hedge.count(std::make_pair(i1,i2))!= 0); + CGAL_assertion(edge_to_hedge.count(std::make_pair(i2,i0))!= 0); halfedge_descriptor h01=edge_to_hedge[std::make_pair(i0,i1)]; halfedge_descriptor h12=edge_to_hedge[std::make_pair(i1,i2)]; @@ -498,7 +498,7 @@ next_marked_halfedge_around_target_vertex( const PolygonMesh& pm, const MarkedEdgeSet& marked_edges) { - CGAL_assertion( marked_edges.count(edge(h,pm)) ); + CGAL_assertion( marked_edges.count(edge(h,pm))!= 0 ); typename boost::graph_traits::halfedge_descriptor nxt = next(h, pm); while( !marked_edges.count(edge(nxt,pm)) ) @@ -661,7 +661,7 @@ struct Triangle_mesh_extension_helper halfedge_descriptor get_hedge(halfedge_descriptor h_tm) { - CGAL_assertion( tm_to_output_edges.count(edge(h_tm, tm)) ); + CGAL_assertion( tm_to_output_edges.count(edge(h_tm, tm))!=0 ); const std::pair& key_and_value = *tm_to_output_edges.find(edge(h_tm, tm)); return halfedge(key_and_value.first,tm) != h_tm @@ -702,7 +702,7 @@ struct Triangle_mesh_extension_helper halfedge_descriptor get_hedge(halfedge_descriptor h_tm) { - CGAL_assertion( tm_to_output_edges.count(edge(h_tm, tm)) ); + CGAL_assertion( tm_to_output_edges.count(edge(h_tm, tm))!=0 ); const std::pair& key_and_value = *tm_to_output_edges.find(edge(h_tm, tm)); return halfedge(key_and_value.first,tm) == h_tm 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 52b88bb3236..9952deb6436 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 @@ -670,7 +670,7 @@ class Intersection_of_triangle_meshes } void erase(Node_id i){ - CGAL_assertion(neighbors.count(i)); + CGAL_assertion(neighbors.count(i)!= 0); neighbors.erase(i); } void make_terminal() {degree=45;}