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: Sat, 9 Jul 2016 18:58:58 +0200 (CEST)

On Sat, 9 Jul 2016, Grzegorz JABLONSKI wrote:

Ok, my mistake. Here is the complete code:

#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::Triangulation_vertex_base_with_info_2<unsigned, K> Vb_info;
typedef CGAL::Alpha_shape_vertex_base_2<K, Vb_info> Vb;
typedef CGAL::Alpha_shape_face_base_2<K>
Fb;
typedef CGAL::Triangulation_data_structure_2<Vb, Fb> Tds;
typedef CGAL::Periodic_2_Delaunay_triangulation_2<GT, Tds> PDT;
typedef CGAL::Alpha_shape_2<PDT> Alpha_shape_2;

int main()
{
Alpha_shape_2 as;
}

This time there is a problem with using Dt::OUTSIDE_CONVEX_HULL in
Alpha_shape_2.h

Thanks. Periodic_3_triangulation_3.h has:

OUTSIDE_CONVEX_HULL, // unused, for compatibility with Alpha_shape_3
OUTSIDE_AFFINE_HULL }; // unused, for compatibility with Alpha_shape_3

(not sure that's the best way to go about it, but as long as it works...)
and the 2D version doesn't. Don't hesitate to file an issue on github to make sure this isn't forgotten (you could even try a pull request).

--
Marc Glisse



Archive powered by MHonArc 2.6.18.

Top of Page