Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Terrain + hierarchy

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Terrain + hierarchy


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss] Terrain + hierarchy
  • Date: Mon, 03 Dec 2007 11:14:25 +0100

Daniel Duque Campayo wrote:
Hello again,

On Monday 03 December 2007 10:51, Andreas Fabri wrote:
Please give the Projection_traits_xy_3 a try. It should fix the problem,
and also works with constrained triangulations, as it provides the
intersection functor.

Yes, this one seems to work fine! Thanks a lot. So, is this class is going to be included in the new releases?

The functionality will move into Trinagulation_euclidean_traits_xy_2 class

The other name is just temporary, to help you out.

andreas



For the record, I include the new code.

Best,

Daniel



#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include "Projection_traits_xy_3.h"
#include <CGAL/Delaunay_triangulation_2.h>
#include <CGAL/Triangulation_hierarchy_2.h>
#include <CGAL/intersections.h>

#include<vector>
#include<iostream>
#include<string>

typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Projection_traits_xy_3<K> Et;

typedef CGAL::Triangulation_vertex_base_2<Et> Vbb;
typedef CGAL::Triangulation_hierarchy_vertex_base_2<Vbb> Vb;
typedef CGAL::Triangulation_face_base_2<Et> Fb;
typedef CGAL::Triangulation_data_structure_2<Vb,Fb> Tds;
typedef CGAL::Delaunay_triangulation_2<Et,Tds> Dt;
typedef CGAL::Triangulation_hierarchy_2<Dt> Triangulation;




Archive powered by MHonArc 2.6.16.

Top of Page