Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] Adding info to 2D Delaunay mesh face
- Date: Thu, 09 Oct 2014 15:50:14 +0200
- Organization: GeometryFactory
Hello,
Use this one as third template parameter of .._with_info_2
http://doc.cgal.org/latest/Triangulation_2/classCGAL_1_1Constrained__triangulation__face__base__2.html
best,
andreas
On 09/10/2014 15:40, Jack Stalnaker wrote:
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
--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project
phone: +33.492.954.912 skype: andreas.fabri
- [cgal-discuss] Adding info to 2D Delaunay mesh face, Jack Stalnaker, 10/09/2014
- Re: [cgal-discuss] Adding info to 2D Delaunay mesh face, Andreas Fabri, 10/09/2014
Archive powered by MHonArc 2.6.18.