Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Alpha_shape_2 using Periodic_2_Delaunay_Triangulation_2

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Alpha_shape_2 using Periodic_2_Delaunay_Triangulation_2


Chronological Thread 
  • From: Marc Glisse <>
  • To: "" <>
  • Subject: Re: [cgal-discuss] Alpha_shape_2 using Periodic_2_Delaunay_Triangulation_2
  • Date: Fri, 8 Jul 2016 20:24:33 +0200 (CEST)

On Fri, 8 Jul 2016, Grzegorz JABLONSKI wrote:

I am trying to compile Alpha_shape_2 using Periodic_Delaunay_Triangulation_2.
Here is code I use:

// CGAL headers
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/Periodic_2_triangulation_filtered_traits_2.h>
#include <CGAL/Periodic_2_Delaunay_triangulation_2.h>
#include <CGAL/Triangulation_vertex_base_with_info_2.h>
#include <CGAL/Alpha_shape_2.h>

//Typedefs
typedef CGAL::Exact_predicates_exact_constructions_kernel K;
typedef CGAL::Periodic_2_triangulation_traits_2<K> GT;
typedef CGAL::Periodic_2_triangulation_vertex_base_2<GT> Vb;
typedef CGAL::Triangulation_vertex_base_with_info_2<unsigned, GT, Vb> Vb_info;
typedef CGAL::Periodic_2_triangulation_face_base_2<GT> Fb;
typedef CGAL::Triangulation_data_structure_2<Vb_info, Fb> Tds;
typedef CGAL::Periodic_2_Delaunay_triangulation_2<GT, Tds> PDT;
typedef PDT::Point Point;
typedef PDT::Point Point_2;

typedef CGAL::Alpha_shape_2<PDT> Alpha_shape_2;

When I try to initialize Alpha_shape_2 object I get errors listed below. Any
idea if what I'm trying to do is possible?

One thing that is suspicious is that you are not using Alpha_shape_vertex_base_2.

--
Marc Glisse



Archive powered by MHonArc 2.6.18.

Top of Page