mirror of https://github.com/CGAL/cgal
Add is_valid(G)
This commit is contained in:
parent
a5d19e9147
commit
223b188f03
|
|
@ -920,7 +920,7 @@ collapse_edge(typename boost::graph_traits<Graph>::edge_descriptor v0v1,
|
||||||
lP_Erased = true ;
|
lP_Erased = true ;
|
||||||
}
|
}
|
||||||
|
|
||||||
CGAL_assertion(g.is_valid());
|
CGAL_assertion(is_valid(g));
|
||||||
|
|
||||||
return lP_Erased ? q : p ;
|
return lP_Erased ? q : p ;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
#include <CGAL/boost/graph/properties_PolyMesh_ArrayKernelT.h>
|
#include <CGAL/boost/graph/properties_PolyMesh_ArrayKernelT.h>
|
||||||
#include <CGAL/BGL/OM_iterator_from_circulator.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>
|
#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);
|
return sm.add_face(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<typename K>
|
||||||
|
bool is_valid(OpenMesh::PolyMesh_ArrayKernelT<K>& sm)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace OpenMesh
|
} // namespace OpenMesh
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -473,6 +473,14 @@ num_faces(const CGAL::Polyhedron_3<Gt,I,HDS,A>& p)
|
||||||
return p.size_of_facets();
|
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
|
} // namespace CGAL
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue