diff --git a/Packages/kdtree/doc_tex/SearchStructures/kd-tree.tex b/Packages/kdtree/doc_tex/SearchStructures/kd-tree.tex index c366e92d667..4dba25c8687 100644 --- a/Packages/kdtree/doc_tex/SearchStructures/kd-tree.tex +++ b/Packages/kdtree/doc_tex/SearchStructures/kd-tree.tex @@ -64,8 +64,8 @@ Kd-trees are implemented by the class \ccc{Kdtree_d}, that is parameterized with a traits class defining the interface between the class and the geometric primitives used. -For the description of the traits classes \ccc{Kd_Interface}, \ccc{Kd_Interface_2d} -and \ccc{Kd_Interface_3d} provided by {\cgal} please refer to the reference pages. +For the description of the traits classes \ccc{Kd_interface}, \ccc{Kd_interface_2d} +and \ccc{Kd_interface_3d} provided by {\cgal} please refer to the reference pages. Also refer to the reference pages, for the description of the formal requirements for a class to be a kd-tree traits class by the concept \ccc{Kdtree_d_traits}. % {\cgal} provides ready-made interface classes that are presented in @@ -141,6 +141,7 @@ The {\kdt} is built using 2D points from the CGAL kernel. #include #include +#include #include #include #include @@ -159,6 +160,8 @@ int main() CGAL::Kdtree_d tree(2); points_list l, res; + srand( (unsigned)time(NULL) ); + std::cout << "Insering evenly 81 points in the square (0,0)-(10,10) ...\n\n"; for (int i=1; i<10; i++) for (int j=1; j<10; j++) diff --git a/Packages/kdtree/doc_tex/basic/SearchStructures/kd-tree.tex b/Packages/kdtree/doc_tex/basic/SearchStructures/kd-tree.tex index c366e92d667..4dba25c8687 100644 --- a/Packages/kdtree/doc_tex/basic/SearchStructures/kd-tree.tex +++ b/Packages/kdtree/doc_tex/basic/SearchStructures/kd-tree.tex @@ -64,8 +64,8 @@ Kd-trees are implemented by the class \ccc{Kdtree_d}, that is parameterized with a traits class defining the interface between the class and the geometric primitives used. -For the description of the traits classes \ccc{Kd_Interface}, \ccc{Kd_Interface_2d} -and \ccc{Kd_Interface_3d} provided by {\cgal} please refer to the reference pages. +For the description of the traits classes \ccc{Kd_interface}, \ccc{Kd_interface_2d} +and \ccc{Kd_interface_3d} provided by {\cgal} please refer to the reference pages. Also refer to the reference pages, for the description of the formal requirements for a class to be a kd-tree traits class by the concept \ccc{Kdtree_d_traits}. % {\cgal} provides ready-made interface classes that are presented in @@ -141,6 +141,7 @@ The {\kdt} is built using 2D points from the CGAL kernel. #include #include +#include #include #include #include @@ -159,6 +160,8 @@ int main() CGAL::Kdtree_d tree(2); points_list l, res; + srand( (unsigned)time(NULL) ); + std::cout << "Insering evenly 81 points in the square (0,0)-(10,10) ...\n\n"; for (int i=1; i<10; i++) for (int j=1; j<10; j++) diff --git a/Packages/kdtree/examples/kdtrees/example1.C b/Packages/kdtree/examples/kdtrees/example1.C index f7e9c34f8ee..e70f94d5717 100644 --- a/Packages/kdtree/examples/kdtrees/example1.C +++ b/Packages/kdtree/examples/kdtrees/example1.C @@ -62,7 +62,7 @@ int main() tree.search( std::back_inserter( res ), r ); - std::cout << "Listing of the points in the square: \n" ; + std::cout << "Listing of the points in the square: \n"; std::copy (res.begin(),res.end(),std::ostream_iterator(std::cout," \n") ); std::cout << std::endl; diff --git a/Packages/kdtree/examples/kdtrees/example2.C b/Packages/kdtree/examples/kdtrees/example2.C index 3409b803e85..197afca5768 100644 --- a/Packages/kdtree/examples/kdtrees/example2.C +++ b/Packages/kdtree/examples/kdtrees/example2.C @@ -3,7 +3,7 @@ * Simple example the CGAL KD-tree module. * * Written by Sariel Har-Peled - * Iddo Hanniel + * Iddo Hanniel \*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/ #include