diff --git a/Surface_mesh_topology/examples/Surface_mesh_topology/basic_example_shortest_noncontractible_cycle.cpp b/Surface_mesh_topology/examples/Surface_mesh_topology/basic_example_shortest_noncontractible_cycle.cpp index 9367805c55a..74a75a450f4 100644 --- a/Surface_mesh_topology/examples/Surface_mesh_topology/basic_example_shortest_noncontractible_cycle.cpp +++ b/Surface_mesh_topology/examples/Surface_mesh_topology/basic_example_shortest_noncontractible_cycle.cpp @@ -7,7 +7,6 @@ #include using LCC_3 =CGAL::Linear_cell_complex_for_combinatorial_map<2, 3>; -using CST =CGAL::Surface_mesh_topology::Curves_on_surface_topology; using Path_on_surface=CGAL::Surface_mesh_topology::Path_on_surface; double cycle_length(const LCC_3& lcc, const Path_on_surface& cycle) @@ -21,10 +20,10 @@ double cycle_length(const LCC_3& lcc, const Path_on_surface& cycle) void display_cycle_info(const LCC_3& lcc, const Path_on_surface& cycle) { // Display information about the given cycle. - if (cycle.is_empty()) { std::cout<<"empty."< cst(lcc); LCC_3::Dart_const_handle root=lcc.darts().begin(); // Fix one vertex of the mesh Path_on_surface cycle1= diff --git a/Surface_mesh_topology/examples/Surface_mesh_topology/edgewidth_surface_mesh.cpp b/Surface_mesh_topology/examples/Surface_mesh_topology/edgewidth_surface_mesh.cpp index 7518369ff50..62a36c1af7b 100644 --- a/Surface_mesh_topology/examples/Surface_mesh_topology/edgewidth_surface_mesh.cpp +++ b/Surface_mesh_topology/examples/Surface_mesh_topology/edgewidth_surface_mesh.cpp @@ -6,8 +6,7 @@ #include #include -using Kernel =CGAL::Simple_cartesian; -using Mesh =CGAL::Surface_mesh; +using Mesh =CGAL::Surface_mesh::Point_3>; using Path_on_surface=CGAL::Surface_mesh_topology::Path_on_surface; double cycle_length(const Mesh& mesh, const Path_on_surface& cycle) @@ -22,10 +21,10 @@ double cycle_length(const Mesh& mesh, const Path_on_surface& cycle) void display_cycle_info(const Mesh& mesh, const Path_on_surface& cycle) { // Display information about the given cycle. - if (cycle.is_empty()) { std::cout<<"empty."<