From 220be3d365ba52fe2f363ca3a5e3c41e3e35d55c Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 6 Jan 2016 08:29:40 +0100 Subject: [PATCH] typo --- .../doc/Cone_spanners_2/Cone_spanners_2.txt | 2 +- .../Cone_spanners_2compute_cones.cmd | 1 - .../Cone_spanners_2compute_cones.cpp | 54 ------------------- .../Cone_spanners_2dijkstra_theta.cmd | 1 - .../examples/Cone_spanners_2theta_io.cmd | 1 - 5 files changed, 1 insertion(+), 58 deletions(-) delete mode 100644 Cone_spanners_2/examples/Cone_spanners_2compute_cones.cmd delete mode 100644 Cone_spanners_2/examples/Cone_spanners_2compute_cones.cpp delete mode 100644 Cone_spanners_2/examples/Cone_spanners_2dijkstra_theta.cmd delete mode 100644 Cone_spanners_2/examples/Cone_spanners_2theta_io.cmd diff --git a/Cone_spanners_2/doc/Cone_spanners_2/Cone_spanners_2.txt b/Cone_spanners_2/doc/Cone_spanners_2/Cone_spanners_2.txt index c3fb87e9aa4..c2290a7a3f1 100644 --- a/Cone_spanners_2/doc/Cone_spanners_2/Cone_spanners_2.txt +++ b/Cone_spanners_2/doc/Cone_spanners_2/Cone_spanners_2.txt @@ -344,7 +344,7 @@ Specifically, this example constructs a Theta graph first and then calculates the shortest paths on this graph by calling the Dijkstra's algorithm from BGL. It mainly consists of the following steps: -1. Define `Exact_predicates_inexact_constructions_kernel_with_root_of` as the kernel type +1. Define `Exact_predicates_inexact_constructions_kernel` as the kernel type to construct the graph inexactly. 2. Define a structure named `Edge_property` for storing the Euclidean length of each edge, which is needed by the Dijkstra's algorithm. diff --git a/Cone_spanners_2/examples/Cone_spanners_2compute_cones.cmd b/Cone_spanners_2/examples/Cone_spanners_2compute_cones.cmd deleted file mode 100644 index 98d9bcb75a6..00000000000 --- a/Cone_spanners_2/examples/Cone_spanners_2compute_cones.cmd +++ /dev/null @@ -1 +0,0 @@ -17 diff --git a/Cone_spanners_2/examples/Cone_spanners_2compute_cones.cpp b/Cone_spanners_2/examples/Cone_spanners_2compute_cones.cpp deleted file mode 100644 index 5b9f82b81c9..00000000000 --- a/Cone_spanners_2/examples/Cone_spanners_2compute_cones.cpp +++ /dev/null @@ -1,54 +0,0 @@ -/** @file compute_cones.cpp - * An example application that computes the cone boundaries given the number of cones - * and the initial direction. - * - * Authors: Weisheng Si and Quincy Tse, University of Western Sydney - */ -#include -#include -#include -#include -#include -#include - -// select the kernel type -typedef CGAL::Exact_predicates_exact_constructions_kernel_with_root_of Kernel; -typedef Kernel::Point_2 Point_2; -typedef Kernel::Direction_2 Direction_2; - -int main(int argc, char ** argv) { - - if (argc < 2) { - std::cout << "Usage: " << argv[0] << " [ ]" << std::endl; - return 1; - } - - unsigned long k = atol(argv[1]); - if (k<2) { - std::cout << "The number of cones should be larger than 1!" << std::endl; - return 1; - } - - Direction_2 initial_direction; - if (argc == 2) - initial_direction = Direction_2(1, 0); // default initial_direction - else if (argc == 4) - initial_direction = Direction_2(atof(argv[2]), atof(argv[3])); - else { - std::cout << "Usage: " << argv[0] << " [ ]" << std::endl; - return 1; - } - - // construct the functor - CGAL::Compute_cone_boundaries_2 cones; - // create the vector rays to store the results - std::vector rays(k); - // compute the cone boundaries and store them in rays - cones(k, initial_direction, rays.begin()); - - // display the computed rays, starting from the initial direction, ccw order - for (int i=0; i