// file: examples/Topological_map/example1.C #include #include #include #include #include typedef CGAL::Pm_dcel Dcel; typedef CGAL::Topological_map Tpm; typedef Tpm::Halfedge_handle Halfedge_handle; typedef Tpm::Vertex_handle Vertex_handle; typedef Tpm::Face_handle Face_handle; int main() { Tpm t; Face_handle uf = t.unbounded_face(); std::cout << "Inserting edge e1 in unbounded face interior ... " ; Halfedge_handle e1 = t.insert_in_face_interior(uf); CGAL_assertion(t.is_valid()); std::cout << "map is valid!" << std::endl; std::cout << "Inserting edge e2 from target vertex of e1 ... " ; Halfedge_handle e2 = t.insert_from_vertex(e1); CGAL_assertion(t.is_valid()); std::cout << "map is valid!" << std::endl; std::cout << "Inserting edge e3 between target vertices of e2 and twin of " << "e1 ... "; t.insert_at_vertices(e2,e1->twin()); CGAL_assertion(t.is_valid()); std::cout << "map is valid!" << std::endl; return 0; }