#include #include #include #include #include #include #include #include typedef CGAL::Simple_cartesian K1; typedef CGAL::Simple_cartesian > K2; typedef K1::Point_3 Point_3; template void test() { Mesh m; CGAL::make_triangle(Point_3(2,0,0),Point_3(1,0,0),Point_3(1,1,0),m); typedef typename boost::property_map::type VPMap; VPMap vmap = get(CGAL::vertex_point, m); CGAL::Cartesian_converter_property_map kcmap =CGAL::make_cartesian_converter_property_map(vmap); assert(get(kcmap, *vertices(m).begin()) == CGAL::Point_3(2,0,0)); put(kcmap, *vertices(m).begin(), CGAL::Point_3(0,2,3)); assert(get(kcmap, *vertices(m).begin()) == CGAL::Point_3(0,2,3)); } int main() { typedef CGAL::Surface_mesh SM; test(); return 0; }