Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Adding info to 2D Delaunay mesh face

Subject: CGAL users discussion list

List archive

[cgal-discuss] Adding info to 2D Delaunay mesh face


Chronological Thread 
  • From: Jack Stalnaker <>
  • To:
  • Subject: [cgal-discuss] Adding info to 2D Delaunay mesh face
  • Date: Thu, 9 Oct 2014 08:40:08 -0500

I would like to add additional information to each triangulation face in a 2D mesh. I see that's fairly easy in plain triangulation using CGAL::Triangulation_face_base_with_info_2 as the face base. However I am having difficulty getting this to work for a 2D mesh. 

I tried:

typedef CGAL::Triangulation_face_base_with_info_2<int, K> Fbi;
typedef CGAL::Delaunay_mesh_face_base_2<K,Fbi> Fb;

but I get errors that Fb does not have member function set_constraint. I can conclude that this means the default base class for Fb contains set_constraint, but that leaves me unclear on how to implement the additional information into the face_base. The documentation doesn't tell me much. It only tells me what Delaunay_mesh_face_base_2 models, not what it inherits from by default. It also tells me that the second template parameter just has to be a model of Triangulation_face_base_2, which Triangulation_face_base_with_info_2 is. It seems like I've satisfied the conditions set forth in the documentation, yet set_constraint becomes unavailable when I do. What am I doing wrong?

--Jack



Archive powered by MHonArc 2.6.18.

Top of Page