CGAL 5.1 - 2D Triangulation
Triangulation_2/terrain_with_info.cpp
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Projection_traits_xy_3.h>
#include <CGAL/Delaunay_triangulation_2.h>
#include <CGAL/Triangulation_vertex_base_with_info_2.h>
#include <string>
typedef K::Point_3 Point;
int main()
{
Delaunay dt;
Delaunay::Vertex_handle vh;
vh = dt.insert(Point(0,0,0));
vh->info() = "Paris";
vh = dt.insert(Point(1,0,0.1));
vh->info() = "London";
vh = dt.insert(Point(0,1,0.2));
vh->info() = "New York";
return 0;
}
CGAL::Exact_predicates_inexact_constructions_kernel
CGAL::Delaunay_triangulation_2::insert
Vertex_handle insert(const Point &p, Face_handle f=Face_handle())
inserts point p.
CGAL::Delaunay_triangulation_2
Definition: Delaunay_triangulation_2.h:80
CGAL::Triangulation_vertex_base_with_info_2
Definition: Triangulation_vertex_base_with_info_2.h:36
CGAL::Triangulation_data_structure_2
CGAL::Projection_traits_xy_3