Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How can I insert the point with infor into Triangulation?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] How can I insert the point with infor into Triangulation?


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] How can I insert the point with infor into Triangulation?
  • Date: Thu, 10 Feb 2011 10:28:14 +0100

not3not4 wrote:
I mean I have some points with different info and want to insert them into
triangulation, and Can I construct the points based on
Triangulation_vertex_base_with_info_3 and insert them into the triangulation?
like that:
typedef CGAL::Triangulation_vertex_base_with_info_3<UINT, K> Vb; typedef CGAL::Triangulation_data_structure_3<Vb> Tds; typedef CGAL::Delaunay_triangulation_3<K, Tds> DelaunayT3;

typedef DelaunayT3::Point Point;
DelaunayT3 dt; Point pt_0(0,0,0); pt_0.info() = 103; dt.insert(pt_0); Point pt_1(1,1,2); pt_1.infor() = 104; dt.insert(pt_1);

The info is in the vertex, not the point.
Try this:
DelaunayT3::Vertex_handle vh=dt.insert(pt_1);
vh.info()=44;

S.
.....

but the info() of Point does't work there, because it's not the member of
Point. So what can I do for this? //thanks




Archive powered by MHonArc 2.6.16.

Top of Page