Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Compil OutputItFaces pb

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Compil OutputItFaces pb


Chronological Thread 
  • From: "Patrick Hétroy" <>
  • To:
  • Subject: Re: [cgal-discuss] Compil OutputItFaces pb
  • Date: Wed, 4 Jul 2007 15:41:42 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=ghuDx+6biEmSXkAVHCJJ33gHYQXP9cTZvskGhK8IfJxaLtjrjuCVNp3rpK2ErJjqqIw+eLdPyJgJkg4qTrzTlIjd1zVHcCuoXMbevGaoPnk89ytVOoLNSW/PSM803RM1gOm5bYp8ApZ/KnHDHrQqPyv8EwxvJjrRsJim82mkp9w=

Thanks a lot Tom I've learned something now!

2007/7/4, Tom Bobach <>:
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


--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss





Archive powered by MHonArc 2.6.16.

Top of Page