Add is_valid(G)

This commit is contained in:
Andreas Fabri 2014-05-30 15:24:51 +02:00
parent a5d19e9147
commit 223b188f03
3 changed files with 16 additions and 2 deletions

View File

@ -920,7 +920,7 @@ collapse_edge(typename boost::graph_traits<Graph>::edge_descriptor v0v1,
lP_Erased = true ;
}
CGAL_assertion(g.is_valid());
CGAL_assertion(is_valid(g));
return lP_Erased ? q : p ;
}

View File

@ -27,7 +27,7 @@
#include <CGAL/boost/graph/properties_PolyMesh_ArrayKernelT.h>
#include <CGAL/BGL/OM_iterator_from_circulator.h>
#include <CGAL/Halfedge_iterator.h>
#include <CGAL/boost/graph/iterator.h>
#include <OpenMesh/Core/Mesh/PolyMesh_ArrayKernelT.hh>
@ -635,6 +635,12 @@ add_face(InputIterator begin, InputIterator end, OpenMesh::PolyMesh_ArrayKernelT
return sm.add_face(v);
}
template<typename K>
bool is_valid(OpenMesh::PolyMesh_ArrayKernelT<K>& sm)
{
return true;
}
} // namespace OpenMesh

View File

@ -473,6 +473,14 @@ num_faces(const CGAL::Polyhedron_3<Gt,I,HDS,A>& p)
return p.size_of_facets();
}
template<class Gt, class I, CGAL_HDS_PARAM_, class A>
bool is_valid(const CGAL::Polyhedron_3<Gt,I,HDS,A>& p)
{
return p.is_valid();
}
} // namespace CGAL