Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Constructing a terrain with a constrained Delaunay triangulation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Constructing a terrain with a constrained Delaunay triangulation


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Constructing a terrain with a constrained Delaunay triangulation
  • Date: Wed, 08 Jun 2011 16:34:29 +0200

Costas Tsirogiannis wrote:

Greetings,

i am trying to make terrain triangulation which is also a constrained Delaunay triangulation. The instantiation that I try is:

typedef typename CGAL::Triangulation_vertex_base_2<Kernel> Vertex_base;
typedef typename CGAL::Constrained_triangulation_face_base_2<Kernel> Face_base;
typedef typename CGAL::Triangulation_data_structure_2<Vertex_base,Face_base> Triangulation_structure;
typedef typename CGAL::Triangulation_euclidean_traits_xy_3< Kernel > Triangulation_traits;
typedef typename CGAL::Exact_predicates_tag Exact_tag;
typedef typename CGAL::Constrained_Delaunay_triangulation_2<Triangulation_traits, Triangulation_structure, Exact_tag> Triangulation;

but I get lots of compilation errors, instead if I try a simple Delaunay triangulation everything looks ok.

Any ideas on what I'm doing wrong?

thanks,

Constantinos


First CGAL::Triangulation_euclidean_traits_xy_3 is deprecated,
you should use Projection_traits_xy_3 instead.

http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Kernel_23_ref/Class_Projection_traits_xy_3.htm

Then replace K by Triangulation_traits in vertex and face instantiation
and that should work.

Sebastien.



Archive powered by MHonArc 2.6.16.

Top of Page