Subject: CGAL users discussion list
List archive
- From: Tom Bobach <>
- To:
- Subject: Re: [cgal-discuss] Compil OutputItFaces pb
- Date: Wed, 4 Jul 2007 11:49:35 +0200
- Organization: University of Kaiserslautern
Hi Patrick,
there is no concrete OutputItFaces in the Delaunay_triangulation_2 class, it
is a template parameter to the get_conflicts method. You probably might want
to read about template based programming in C++ since this is fundamental for
understanding most of CGAL's workings.
In order to retrieve the conflicts, you would have to create a container and
pass an insertion iterator for that container, e.g. the back_inserter from
the STL:
typedef std::vector<Delaunay::Face_handle> Faces;
Faces faces;
std::back_insert_iterator<Faces> result( faces );
result = dt.get_conflicts ( Delaunay::Point(0.5, 0.5, 0.5),
std::back_inserter(faces) );
You can usually skip the assignment to "result" since faces contains what you
want. Hope that helped.
Cheers
Tom
On Wednesday 04 July 2007 10:24, Patrick Hétroy wrote:
> Hi!
>
> I would like to use the OutputItFaces iterator in my Delaunay triangulation
> 2.
> But I cannot access to it... My declaration is :
>
> struct K : CGAL::Exact_predicates_inexact_constructions_kernel {};
> typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt;
> typedef CGAL::Delaunay_triangulation_2<Gt> Delaunay;
> typedef Delaunay::OutputItFaces OutputItFaces;
>
>
> In my code I have a :
>
> Delaunay dt;
> //...
> OutputItFaces fit, result;
> Face_handle start();
> result = dt.get_conflicts ( Point_3(0, 0, 0), fit, start);
>
>
> Error 7 error C2039: 'OutputItFaces' : is not a member of
> 'CGAL::Delaunay_triangulation_2<Gt>'
>
> How can I deal with this pb ?
>
> In advance thank you !
>
>
> Patrick
--
Dipl. Inform Tom Bobach, University of Kaiserslautern
Geometric Algorithms Group
P.O. Box 3049
D-67653 Kaiserslautern
Germany
Phone: 0631-205 3800
Fax: 0631-205 3270
- Compil OutputItFaces pb, Patrick Hétroy, 07/04/2007
- Re: [cgal-discuss] Compil OutputItFaces pb, Tom Bobach, 07/04/2007
- Re: [cgal-discuss] Compil OutputItFaces pb, Patrick Hétroy, 07/04/2007
- Re: [cgal-discuss] Compil OutputItFaces pb, Tom Bobach, 07/04/2007
Archive powered by MHonArc 2.6.16.