Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] hierarchy triangulation with point info

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] hierarchy triangulation with point info


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] hierarchy triangulation with point info
  • Date: Fri, 13 Jun 2014 09:39:59 +0200
  • Organization: GeometryFactory

On 06/13/2014 05:12 AM, ffmm3 wrote:
I have show the typedef at the in my post, such as:

typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Projection_traits_xy_3<K> Gt;
typedef CGAL::Triangulation_vertex_base_with_info_2<unsigned, Gt> Vbb;
typedef CGAL::Triangulation_hierarchy_vertex_base_2<Vbb> Vb;
typedef CGAL::Triangulation_face_base_2<Gt> Fb;
typedef CGAL::Triangulation_data_structure_2<Vb,Fb> Tds;
typedef CGAL::Delaunay_triangulation_2<Gt,Tds> Dt;
typedef CGAL::Triangulation_hierarchy_2<Dt> Hierarchy_triangulation;



Sorry, the typedefs were only shown on nabble and not on the mail I received.

The insert function you are trying to use is not implemented for
the Triangulation_hierarchy_2 because the spatial sorting is not
needed here.

You can simply do

for (int i=0; i<pts.size(); ++i)
ht.insert(pts[i])->info()=i;

Sebastien

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/hierarchy-triangulation-with-point-info-tp4659408p4659438.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.18.

Top of Page