mirror of https://github.com/CGAL/cgal
Show the problem in a test
This commit is contained in:
parent
22151a582f
commit
726b9c9485
|
|
@ -62,6 +62,9 @@ if(OpenMesh_FOUND)
|
|||
|
||||
create_single_source_cgal_program("graph_concept_OpenMesh.cpp")
|
||||
target_link_libraries(graph_concept_OpenMesh PRIVATE ${OPENMESH_LIBRARIES})
|
||||
|
||||
create_single_source_cgal_program("test_OpenMesh.cpp")
|
||||
target_link_libraries(test_OpenMesh PRIVATE ${OPENMESH_LIBRARIES})
|
||||
else()
|
||||
message(STATUS "NOTICE: Tests that use OpenMesh will not be compiled.")
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
#include <CGAL/basic.h>
|
||||
#include <OpenMesh/Core/IO/MeshIO.hh>
|
||||
#include <OpenMesh/Core/Mesh/PolyMesh_ArrayKernelT.hh>
|
||||
|
||||
#include <CGAL/boost/graph/graph_traits_PolyMesh_ArrayKernelT.h>
|
||||
|
||||
|
||||
typedef OpenMesh::PolyMesh_ArrayKernelT<> Om;
|
||||
typedef boost::graph_traits< Om > Traits;
|
||||
typedef Traits::edge_descriptor edge_descriptor;
|
||||
typedef Traits::halfedge_descriptor halfedge_descriptor;
|
||||
typedef Traits::vertex_descriptor vertex_descriptor;
|
||||
typedef Traits::face_descriptor face_descriptor;
|
||||
//typedef Kernel::Point_3 Point_3;
|
||||
|
||||
int main()
|
||||
{
|
||||
Om om;
|
||||
for (Om::EdgeHandle ed : edges(om)) {
|
||||
std::cout << "edge" << std::endl;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -36,11 +36,11 @@ public:
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
operator OpenMesh::EdgeHandle () const {
|
||||
return OpenMesh::EdgeHandle(idx());
|
||||
}
|
||||
|
||||
*/
|
||||
bool operator<(const OMesh_edge& other) const
|
||||
{
|
||||
return this->idx() < other.idx();
|
||||
|
|
|
|||
Loading…
Reference in New Issue