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: Costas Tsirogiannis <>
  • To:
  • Subject: Re: [cgal-discuss] Constructing a terrain with a constrained Delaunay triangulation
  • Date: Wed, 8 Jun 2011 16:55:02 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=gPEbhfyWXFP/MdKnMDJz98K7D780f3E0cKuIxfbrzGp2e132NBaXkFu5cSrrlIXVYW 86aIGMPVBw8nsJtWLR35WLmZDhHyOmrTkDme4lYZwaWLE0RFB6+/xr/pgNajaDmWFYfW 2A5sdy66iZ091zH19i/BxYveqnowD8aGSns6U=

Merci Beaucoup!

Constantinos

On Wed, Jun 8, 2011 at 4:34 PM, Sebastien Loriot (GeometryFactory) <sloriot.ml@gmail.com> wrote:
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.

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss





Archive powered by MHonArc 2.6.16.

Top of Page