diff --git a/Surface_mesh_topology/include/CGAL/Surface_mesh_topology/internal/Minimal_quadrangulation.h b/Surface_mesh_topology/include/CGAL/Surface_mesh_topology/internal/Minimal_quadrangulation.h index e67b3cb1a9a..1506ec864e9 100644 --- a/Surface_mesh_topology/include/CGAL/Surface_mesh_topology/internal/Minimal_quadrangulation.h +++ b/Surface_mesh_topology/include/CGAL/Surface_mesh_topology/internal/Minimal_quadrangulation.h @@ -573,7 +573,7 @@ protected: /// Mark the edge containing adart in the original map. void mark_original_edge(Original_dart_const_handle adart, - std::size_t amark) + Original_size_type amark) { get_original_map().mark(adart, amark); if (!get_original_map().template is_free<2>(adart)) @@ -582,7 +582,7 @@ protected: } /// Mark the edge containing adart in the reduced map (which is 2-closed) - void mark_reduced_edge(Dart_const_handle adart, std::size_t amark) + void mark_reduced_edge(Dart_const_handle adart, size_type amark) { get_local_map().mark(adart, amark); get_local_map().mark(get_local_map().template beta<2>(adart), amark); diff --git a/Surface_mesh_topology/test/Surface_mesh_topology/shortest_noncontractible_cycle_tests.cpp b/Surface_mesh_topology/test/Surface_mesh_topology/shortest_noncontractible_cycle_tests.cpp index af4c65c614a..6e7867d752d 100644 --- a/Surface_mesh_topology/test/Surface_mesh_topology/shortest_noncontractible_cycle_tests.cpp +++ b/Surface_mesh_topology/test/Surface_mesh_topology/shortest_noncontractible_cycle_tests.cpp @@ -355,7 +355,7 @@ bool unsew_edge_width_repeatedly_in_unweighted_gmap() { std::cerr << "Fail unsew_edge_width_repeatedly_in_unweighted_gmap: Cannot locate file data/3torus.off\n"; return false; } - std::vector cycle_lengths; + std::vector cycle_lengths; std::size_t length; do { CGAL::Surface_mesh_topology::Curves_on_surface_topology cst(lcc_gm); diff --git a/Surface_mesh_topology/test/Surface_mesh_topology/test_shortest_cycle_non_contractible.cpp b/Surface_mesh_topology/test/Surface_mesh_topology/test_shortest_cycle_non_contractible.cpp index 1d8420d8b6e..93fddd55fa6 100644 --- a/Surface_mesh_topology/test/Surface_mesh_topology/test_shortest_cycle_non_contractible.cpp +++ b/Surface_mesh_topology/test/Surface_mesh_topology/test_shortest_cycle_non_contractible.cpp @@ -72,8 +72,8 @@ bool test_weighted(const LCC_CM& map, { bool res=true; - // Cycle is the smallest non contractible cycle with unary weight on double-torus-2-d.off. - // Its length is 48. + // Cycle is the smallest non contractible cycle with unary weight on double-torus-2-b.off. + // Its length is 12. // 1) We create a cycle parallel to this first one. typename LCC_CM::Dart_const_handle dh=nullptr; @@ -91,7 +91,7 @@ bool test_weighted(const LCC_CM& map, dh=map.next(dh); // 2) Here dh is on the parallel of the first cycle. We mark darts of the cycle parallel - // to the first one. Its lenght is 96. + // to the first one. Its lenght is 24. auto mark=map.get_new_mark(); std::size_t nbedges=0; typename LCC_CM::Dart_const_handle dh2=dh; @@ -106,10 +106,10 @@ bool test_weighted(const LCC_CM& map, } while(dh2!=dh); - if (nbedges!=96) + if (nbedges!=24) { std::cout<<"[ERROR] in test_weighted: the length of the second cycle is wrong: " - <(const LCC_CM& map, template bool test_one_data_structure(const Mesh& mesh, std::size_t nbedges, double length, - std::size_t nbfaces, bool is_double_torus_2_d) + std::size_t nbfaces, bool is_double_torus_2_b) { bool res=true; @@ -157,7 +157,7 @@ bool test_one_data_structure(const Mesh& mesh, std::size_t nbedges, double lengt res=false; } - if (is_double_torus_2_d) + if (is_double_torus_2_b) { if (!test_weighted(mesh, cycle)) { res=false; } @@ -197,7 +197,7 @@ bool test(const char* filename, std::size_t nbedges, double length, std::size_t LCC_CM lcc_cm; load_lcc(lcc_cm, filename); if (!test_one_data_structure(lcc_cm, nbedges, length, nbfaces, - std::string(filename)=="data/double-torus-2-d.off")) + std::string(filename)=="data/double-torus-2-b.off")) { std::cout<<"[ERROR] for Linear_cell_complex_for_combinatorial_map."<