#include #include #include #if defined(CGAL_USE_OPENMESH) #include #include #include #endif typedef CGAL::Exact_predicates_inexact_constructions_kernel K; typedef K::Point_3 Point_3; template void test() { Mesh m; CGAL::make_triangle(Point_3(0,0,0),Point_3(1,0,0),Point_3(1,1,0),m); { typedef typename boost::property_map >::type VIM; VIM vim = get(CGAL::dynamic_vertex_property_t(), m); put(vim, *(vertices(m).first), 7812); assert(get(vim, *(vertices(m).first)) == 7812); } { typedef typename boost::property_map >::type VIM; VIM vim = get(CGAL::dynamic_halfedge_property_t(), m); put(vim, *(halfedges(m).first), 7812); assert(get(vim, *(halfedges(m).first)) == 7812); } { typedef typename boost::property_map >::type VIM; VIM vim = get(CGAL::dynamic_edge_property_t(), m); put(vim, *(edges(m).first), 7812); assert(get(vim, *(edges(m).first)) == 7812); } { typedef typename boost::property_map >::type VIM; VIM vim = get(CGAL::dynamic_face_property_t(), m); put(vim, *(faces(m).first), 7812); assert(get(vim, *(faces(m).first)) == 7812); } const Mesh& m2(m); { typedef typename boost::property_map >::const_type VIM; VIM vim = get(CGAL::dynamic_vertex_property_t(), m2); put(vim, *(vertices(m).first), 7812); assert(get(vim, *(vertices(m).first)) == 7812); } { typedef typename boost::property_map >::const_type VIM; VIM vim = get(CGAL::dynamic_halfedge_property_t(), m2); put(vim, *(halfedges(m).first), 7812); assert(get(vim, *(halfedges(m).first)) == 7812); } { typedef typename boost::property_map >::const_type VIM; VIM vim = get(CGAL::dynamic_edge_property_t(), m2); put(vim, *(edges(m).first), 7812); assert(get(vim, *(edges(m).first)) == 7812); } { typedef typename boost::property_map >::const_type VIM; VIM vim = get(CGAL::dynamic_face_property_t(), m2); put(vim, *(faces(m).first), 7812); assert(get(vim, *(faces(m).first)) == 7812); } } int main() { typedef CGAL::Surface_mesh SM; test(); typedef CGAL::Polyhedron_3 P; test

(); #if defined(CGAL_USE_OPENMESH) typedef OpenMesh::PolyMesh_ArrayKernelT OM; test(); #endif return 0; }