mirror of https://github.com/CGAL/cgal
Qualify generic BGL functions with CGAL:: when used outside of the CGAL namespace
This commit is contained in:
parent
790764dfa1
commit
b4c608940e
|
|
@ -24,7 +24,7 @@ join_face_test()
|
|||
assert(CGAL::internal::exact_num_edges(f.m) == 6);
|
||||
|
||||
CGAL::Halfedge_around_face_iterator<T> begin, end;
|
||||
boost::tie(begin, end) = halfedges_around_face(halfedge(f.f1, f.m), f.m);
|
||||
boost::tie(begin, end) = CGAL::halfedges_around_face(halfedge(f.f1, f.m), f.m);
|
||||
assert(std::distance(begin, end) == 4);
|
||||
for(; begin != end; ++begin)
|
||||
{
|
||||
|
|
@ -163,8 +163,8 @@ join_vertex_interior_test()
|
|||
assert(CGAL::internal::exact_num_faces(f.m) == 2);
|
||||
assert(CGAL::internal::exact_num_vertices(f.m) == 5);
|
||||
assert(CGAL::internal::exact_num_edges(f.m) == 6);
|
||||
assert(boost::distance(halfedges_around_face(halfedge(f.f1, f.m), f.m)) == 3);
|
||||
assert(boost::distance(halfedges_around_face(halfedge(f.f2, f.m), f.m)) == 3);
|
||||
assert(boost::distance(CGAL::halfedges_around_face(halfedge(f.f1, f.m), f.m)) == 3);
|
||||
assert(boost::distance(CGAL::halfedges_around_face(halfedge(f.f2, f.m), f.m)) == 3);
|
||||
assert(degree(f.x, f.m) == 4);
|
||||
assert(CGAL::is_valid(f.m));
|
||||
}
|
||||
|
|
@ -188,8 +188,8 @@ join_vertex_exterior_test()
|
|||
assert(CGAL::internal::exact_num_faces(f.m) == 2);
|
||||
assert(CGAL::internal::exact_num_vertices(f.m) == 5);
|
||||
assert(CGAL::internal::exact_num_edges(f.m) == 6);
|
||||
assert(boost::distance(halfedges_around_face(halfedge(f.f1, f.m), f.m)) == 4);
|
||||
assert(boost::distance(halfedges_around_face(halfedge(f.f2, f.m), f.m)) == 3);
|
||||
assert(boost::distance(CGAL::halfedges_around_face(halfedge(f.f1, f.m), f.m)) == 4);
|
||||
assert(boost::distance(CGAL::halfedges_around_face(halfedge(f.f2, f.m), f.m)) == 3);
|
||||
assert(degree(f.y, f.m) == 3);
|
||||
assert(CGAL::is_valid(f.m));
|
||||
}
|
||||
|
|
@ -207,8 +207,8 @@ join_vertex_exterior_test()
|
|||
assert(CGAL::internal::exact_num_faces(f.m) == 2);
|
||||
assert(CGAL::internal::exact_num_vertices(f.m) == 5);
|
||||
assert(CGAL::internal::exact_num_edges(f.m) == 6);
|
||||
assert(boost::distance(halfedges_around_face(halfedge(f.f1, f.m), f.m)) == 4);
|
||||
assert(boost::distance(halfedges_around_face(halfedge(f.f2, f.m), f.m)) == 3);
|
||||
assert(boost::distance(CGAL::halfedges_around_face(halfedge(f.f1, f.m), f.m)) == 4);
|
||||
assert(boost::distance(CGAL::halfedges_around_face(halfedge(f.f2, f.m), f.m)) == 3);
|
||||
|
||||
assert(CGAL::is_valid(f.m));
|
||||
assert(degree(f.w, f.m) == 3);
|
||||
|
|
@ -237,8 +237,8 @@ split_vertex()
|
|||
assert(CGAL::is_valid(f.m));
|
||||
assert(CGAL::internal::exact_num_vertices(f.m) == 7);
|
||||
assert(CGAL::internal::exact_num_edges(f.m) == 8);
|
||||
assert(boost::distance(halfedges_around_face(h1, f.m)) == 5);
|
||||
assert(boost::distance(halfedges_around_face(h2, f.m)) == 7);
|
||||
assert(boost::distance(CGAL::halfedges_around_face(h1, f.m)) == 5);
|
||||
assert(boost::distance(CGAL::halfedges_around_face(h2, f.m)) == 7);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
|
@ -264,8 +264,8 @@ split_join_vertex_inverse()
|
|||
assert(CGAL::internal::exact_num_faces(f.m) == 2);
|
||||
assert(CGAL::internal::exact_num_edges(f.m) == 6);
|
||||
assert(CGAL::internal::exact_num_halfedges(f.m) == 12);
|
||||
assert(boost::distance(halfedges_around_face(h1, f.m)) == 3);
|
||||
assert(boost::distance(halfedges_around_face(h2, f.m)) == 3);
|
||||
assert(boost::distance(CGAL::halfedges_around_face(h1, f.m)) == 3);
|
||||
assert(boost::distance(CGAL::halfedges_around_face(h2, f.m)) == 3);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <CGAL/boost/graph/properties.h>
|
||||
|
||||
#include <CGAL/Simple_cartesian.h>
|
||||
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
||||
|
||||
#include <CGAL/Polyhedron_items_with_id_3.h>
|
||||
#include <CGAL/IO/Polyhedron_iostream.h>
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
// ATTN: If you change this kernel remember to also hack
|
||||
// properties_PolyMesh_ArrayKernelT.h accordingly
|
||||
typedef CGAL::Simple_cartesian<double> Kernel;
|
||||
typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
|
||||
typedef CGAL::Polyhedron_3<Kernel, CGAL::Polyhedron_items_with_id_3> Polyhedron;
|
||||
|
||||
typedef Kernel::Point_3 Point_3;
|
||||
|
|
@ -173,12 +173,12 @@ struct Surface_fixture_1 {
|
|||
assert(x != boost::graph_traits<Graph>::null_vertex());
|
||||
assert(y != boost::graph_traits<Graph>::null_vertex());
|
||||
|
||||
f1 = is_border(halfedge(u, m),m) ? face(opposite(halfedge(u, m), m), m) : face(halfedge(u, m), m);
|
||||
f1 = CGAL::is_border(halfedge(u, m),m) ? face(opposite(halfedge(u, m), m), m) : face(halfedge(u, m), m);
|
||||
assert(f1 != boost::graph_traits<Graph>::null_face());
|
||||
CGAL::Halfedge_around_face_iterator<Graph> hafib, hafie;
|
||||
for(boost::tie(hafib, hafie) = halfedges_around_face(halfedge(f1, m), m); hafib != hafie; ++hafib)
|
||||
for(boost::tie(hafib, hafie) = CGAL::halfedges_around_face(halfedge(f1, m), m); hafib != hafie; ++hafib)
|
||||
{
|
||||
if(! is_border(opposite(*hafib, m), m))
|
||||
if(! CGAL::is_border(opposite(*hafib, m), m))
|
||||
f2 = face(opposite(*hafib, m), m);
|
||||
}
|
||||
typename boost::graph_traits<Graph>::face_iterator fb, fe;
|
||||
|
|
@ -226,25 +226,25 @@ struct Surface_fixture_2 {
|
|||
bool found;
|
||||
boost::tie(h, found) = halfedge(x, v, m);
|
||||
assert(found);
|
||||
assert(! is_border(h,m));
|
||||
assert(! CGAL::CGAL::is_border(h,m));
|
||||
f1 = face(h, m);
|
||||
assert(f1 != boost::graph_traits<Graph>::null_face());
|
||||
|
||||
boost::tie(h, found) = halfedge(v, u, m);
|
||||
assert(found);
|
||||
assert(!is_border(h,m));
|
||||
assert(!CGAL::is_border(h,m));
|
||||
f2 = face(h, m);
|
||||
assert(f2 != boost::graph_traits<Graph>::null_face());
|
||||
|
||||
boost::tie(h, found) = halfedge(u, w, m);
|
||||
assert(found);
|
||||
assert(!is_border(h,m));
|
||||
assert(!CGAL::is_border(h,m));
|
||||
f3 = face(h, m);
|
||||
assert(f3 != boost::graph_traits<Graph>::null_face());
|
||||
|
||||
boost::tie(h, found) = halfedge(w, x, m);
|
||||
assert(found);
|
||||
assert(!is_border(h,m));
|
||||
assert(!CGAL::is_border(h,m));
|
||||
f4 = face(h, m);
|
||||
assert(f4 != boost::graph_traits<Graph>::null_face());
|
||||
}
|
||||
|
|
@ -287,8 +287,8 @@ struct Surface_fixture_3 {
|
|||
assert(y != boost::graph_traits<Graph>::null_vertex());
|
||||
assert(z != boost::graph_traits<Graph>::null_vertex());
|
||||
|
||||
f1 = is_border(halfedge(u, m),m) ? face(opposite(halfedge(u, m), m), m) : face(halfedge(u, m), m);
|
||||
f2 = is_border(halfedge(u, m),m) ? face(opposite(halfedge(z, m), m), m) : face(halfedge(z, m), m);
|
||||
f1 = CGAL::is_border(halfedge(u, m),m) ? face(opposite(halfedge(u, m), m), m) : face(halfedge(u, m), m);
|
||||
f2 = CGAL::is_border(halfedge(u, m),m) ? face(opposite(halfedge(z, m), m), m) : face(halfedge(z, m), m);
|
||||
|
||||
assert(f1 != boost::graph_traits<Graph>::null_face());
|
||||
assert(f2 != boost::graph_traits<Graph>::null_face());
|
||||
|
|
@ -314,7 +314,7 @@ struct Surface_fixture_4 {
|
|||
int found = 0;
|
||||
typename boost::graph_traits<Graph>::halfedge_iterator hb, he;
|
||||
for(boost::tie(hb, he) = halfedges(m); hb != he; ++hb) {
|
||||
if(is_border(*hb,m)){
|
||||
if(CGAL::is_border(*hb,m)){
|
||||
if(get(pm, target(*hb,m)) == Point_3(0,0,0)){
|
||||
if(found == 0){
|
||||
h1 = *hb;
|
||||
|
|
@ -349,7 +349,7 @@ struct Surface_fixture_5 {
|
|||
int found = 0;
|
||||
typename boost::graph_traits<Graph>::halfedge_iterator hb, he;
|
||||
for(boost::tie(hb, he) = halfedges(m); hb != he; ++hb) {
|
||||
if(is_border(*hb,m)){
|
||||
if(CGAL::is_border(*hb,m)){
|
||||
if(get(pm, target(*hb,m)) == Point_3(2,1,0)){
|
||||
h1 = *hb;
|
||||
found++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue