mirror of https://github.com/CGAL/cgal
Readability changes
This commit is contained in:
parent
9faf52a7f5
commit
c5f134c9ae
|
|
@ -20,12 +20,8 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
My_vertex_base() {}
|
My_vertex_base() {}
|
||||||
|
My_vertex_base(const Point& p) : Vb(p) {}
|
||||||
My_vertex_base(const Point& p)
|
My_vertex_base(const Point& p, Cell_handle c) : Vb(p, c) {}
|
||||||
: Vb(p) {}
|
|
||||||
|
|
||||||
My_vertex_base(const Point& p, Cell_handle c)
|
|
||||||
: Vb(p, c) {}
|
|
||||||
|
|
||||||
Vertex_handle vh;
|
Vertex_handle vh;
|
||||||
Cell_handle ch;
|
Cell_handle ch;
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ int main()
|
||||||
|
|
||||||
// building their Delaunay triangulation.
|
// building their Delaunay triangulation.
|
||||||
Delaunay T(P.begin(), P.end());
|
Delaunay T(P.begin(), P.end());
|
||||||
|
|
||||||
assert( T.number_of_vertices() == 8000 );
|
assert( T.number_of_vertices() == 8000 );
|
||||||
|
|
||||||
// performing nearest vertex queries to a series of random points,
|
// performing nearest vertex queries to a series of random points,
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,6 @@ int main()
|
||||||
points.push_back(Point(2,2,2));
|
points.push_back(Point(2,2,2));
|
||||||
points.push_back(Point(-1,0,1));
|
points.push_back(Point(-1,0,1));
|
||||||
|
|
||||||
|
|
||||||
Delaunay T( boost::make_transform_iterator(points.begin(),Auto_count()),
|
Delaunay T( boost::make_transform_iterator(points.begin(),Auto_count()),
|
||||||
boost::make_transform_iterator(points.end(), Auto_count() ) );
|
boost::make_transform_iterator(points.end(), Auto_count() ) );
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ typedef Delaunay::Point Point;
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
|
||||||
std::vector<unsigned> indices;
|
std::vector<unsigned> indices;
|
||||||
indices.push_back(0);
|
indices.push_back(0);
|
||||||
indices.push_back(1);
|
indices.push_back(1);
|
||||||
|
|
@ -35,14 +34,11 @@ int main()
|
||||||
points.push_back(Point(2,2,2));
|
points.push_back(Point(2,2,2));
|
||||||
points.push_back(Point(-1,0,1));
|
points.push_back(Point(-1,0,1));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Delaunay T( boost::make_zip_iterator(boost::make_tuple( points.begin(),indices.begin() )),
|
Delaunay T( boost::make_zip_iterator(boost::make_tuple( points.begin(),indices.begin() )),
|
||||||
boost::make_zip_iterator(boost::make_tuple( points.end(),indices.end() ) ) );
|
boost::make_zip_iterator(boost::make_tuple( points.end(),indices.end() ) ) );
|
||||||
|
|
||||||
CGAL_assertion( T.number_of_vertices() == 6 );
|
CGAL_assertion( T.number_of_vertices() == 6 );
|
||||||
|
|
||||||
|
|
||||||
// check that the info was correctly set.
|
// check that the info was correctly set.
|
||||||
Delaunay::Finite_vertices_iterator vit;
|
Delaunay::Finite_vertices_iterator vit;
|
||||||
for (vit = T.finite_vertices_begin(); vit != T.finite_vertices_end(); ++vit)
|
for (vit = T.finite_vertices_begin(); vit != T.finite_vertices_end(); ++vit)
|
||||||
|
|
|
||||||
|
|
@ -36,9 +36,9 @@ int main()
|
||||||
// Construct the locking data-structure, using the bounding-box of the points
|
// Construct the locking data-structure, using the bounding-box of the points
|
||||||
Triangulation::Lock_data_structure locking_ds(
|
Triangulation::Lock_data_structure locking_ds(
|
||||||
CGAL::Bbox_3(-1., -1., -1., 1., 1., 1.), 50);
|
CGAL::Bbox_3(-1., -1., -1., 1., 1., 1.), 50);
|
||||||
|
|
||||||
// Construct the triangulation in parallel
|
// Construct the triangulation in parallel
|
||||||
Triangulation T(V.begin(), V.end(), &locking_ds);
|
Triangulation T(V.begin(), V.end(), &locking_ds);
|
||||||
|
|
||||||
assert(T.is_valid());
|
assert(T.is_valid());
|
||||||
|
|
||||||
#endif //CGAL_LINKED_WITH_TBB
|
#endif //CGAL_LINKED_WITH_TBB
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
||||||
|
|
||||||
#include <CGAL/Regular_triangulation_3.h>
|
#include <CGAL/Regular_triangulation_3.h>
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
||||||
|
|
||||||
#include <CGAL/Triangulation_3.h>
|
#include <CGAL/Triangulation_3.h>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue