Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Alpha_shape_2 with info

Subject: CGAL users discussion list

List archive

[cgal-discuss] Alpha_shape_2 with info


Chronological Thread 
  • From: Asher Kamiraze <>
  • To:
  • Subject: [cgal-discuss] Alpha_shape_2 with info
  • Date: Thu, 19 May 2011 12:46:00 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=BBDba85fPH1Tq0zORVae8Ts4UPZamhMrqXTFWFyf2HP/Z1fOdYOgB/nmuBFDAX7upq QBkfGbmbQgM2lV2r+xoZlYS0iMGz0DXJZYpADSBoHRFV/YxFmFUXRhkH5pLkgVp4EYFB xo4vg1/PH0igmaNIJkC9bKmAeGE+EiK6d7tq0=

Hi all,

Is there a way to build an alpha_shape_2 with info? Something similar to a triangulation with info.
I have also noticed that insert() is private in alpha_shape_2, but, push_back is not. Isn't it a problem?

Here is what I am trying to do:


    typedef CGAL::Exact_predicates_exact_constructions_kernel                       K;

    struct vertex_info { Point point3d; };
    struct face_info {};

    typedef CGAL::Triangulation_vertex_base_with_info_2<vertex_info,K>              Vb_2;
    typedef CGAL::Constrained_triangulation_face_base_with_info_2<face_info,K>      Fb_2;

    typedef CGAL::Alpha_shape_vertex_base_2<K, Vb_2> Vb;
    typedef CGAL::Alpha_shape_face_base_2<K, Fb_2>  Fb;

    typedef CGAL::Triangulation_data_structure_2<Vb,Fb>                         TDS_2;
    typedef CGAL::Delaunay_triangulation_2<K  , TDS_2>                              DT_2;

    typedef CGAL::Alpha_shape_2<DT_2> Alpha_shape_2;


            Alpha_shape_2 alpha_shape(0.5);
            // How to insert points in alpha_shape with attached info?

Hope you could help

Best regards

Asher



Archive powered by MHonArc 2.6.16.

Top of Page