Subject: CGAL users discussion list
List archive
- From: Efraim Fogel <>
- To:
- Subject: Re: [cgal-discuss] Arrangement changes between 3.1 and 3.3.1
- Date: Mon, 24 Sep 2007 14:41:15 +0200
The functionality to are referring to (iterating over the curves) has
been preserved, but it is part of the arrangement with history data
structure. In the past We use to have Planar_map_2 and Arrangement_2.
These were replaced by Arrangement_2 and Arrangement_with_history_2, so
simply define the type Arr_2 to be Arrangement_with_history_2<...>
Martin Baeker wrote:
> Dear experts,
>
> I am currently updating my code from version 3.1 to 3.3.1.
>
> In between, the Arrangement_2-class has changed drastically and I am
> missing the old possibility of iterating over the curves of an
> Arrangement:
>
> Old code (taken almost directly from the 3.1 manual)
>
> Arr_2 pm;
> // Trial: Insert the segments one by one
> pm.insert(seglist.begin(), seglist.end());
> for (unsigned int i=0; i< seglist.size(); i++)
> pm.insert_curve(seglist[i]);
> std::cout << "\n\nWriting pm's halfedges" << std::endl;
> Arr_2::Edge_iterator eit;
> Arr_2::Curve_iterator cit;
> unsigned int edgeCounter=0;
> for (cit = pm.curve_node_begin(); cit != pm.curve_node_end(); ++cit)
> {
> std::cout << std::endl << "Curve level:" << std::endl << cit->curve()
> << std::endl ;
> std::cout << "Edge level:" << std::endl;
> edgeCounter++;
> for (eit = cit->edges_begin(); eit != cit->edges_end(); ++eit)
> {
> std::cout << eit->x_curve() << std::endl ;
> }
> }
>
> However, this does not work anymore because there is no
> Arr_2::Curve_iterator class anymore. I searched through the Docs but
> could not find how this can be replaced with another iterator.
> Is it still possible to traverse the Curves of an Arrangement?
>
> Thanks a lot in advance,
>
> Martin.
>
>
> Priv.-Doz. Dr. Martin Bäker
> Institut für Werkstoffe
> Technische Universität Braunschweig
> Langer Kamp 8
> 38106 Braunschweig
> Germany
> Tel.: 00-49-531-391-3073
> Fax 00-49-531-391-3058
> <>--
>
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
--
____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
- Arrangement changes between 3.1 and 3.3.1, Martin Baeker, 09/24/2007
- Re: [cgal-discuss] Arrangement changes between 3.1 and 3.3.1, Efraim Fogel, 09/24/2007
- Re: [cgal-discuss] Arrangement changes between 3.1 and 3.3.1, Martin Baeker, 09/25/2007
- Re: [cgal-discuss] Arrangement changes between 3.1 and 3.3.1, Efraim Fogel, 09/25/2007
- Re: [cgal-discuss] Arrangement changes between 3.1 and 3.3.1, Martin Baeker, 09/26/2007
- Re: [cgal-discuss] Arrangement changes between 3.1 and 3.3.1, Efi Fogel, 09/26/2007
- Arrangement_with_history::Induced_edge_iterator problem, Martin Baeker, 09/27/2007
- Re: [cgal-discuss] Arrangement_with_history::Induced_edge_iterator problem, Efi Fogel, 09/28/2007
- Re: [cgal-discuss] Arrangement_with_history::Induced_edge_iterator problem, Martin Baeker, 09/28/2007
- Arrangement_with_history::Induced_edge_iterator problem, Martin Baeker, 09/27/2007
- Re: [cgal-discuss] Arrangement changes between 3.1 and 3.3.1, Efi Fogel, 09/26/2007
- Re: [cgal-discuss] Arrangement changes between 3.1 and 3.3.1, Martin Baeker, 09/26/2007
- Re: [cgal-discuss] Arrangement changes between 3.1 and 3.3.1, Efraim Fogel, 09/25/2007
- Re: [cgal-discuss] Arrangement changes between 3.1 and 3.3.1, Martin Baeker, 09/25/2007
- Re: [cgal-discuss] Arrangement changes between 3.1 and 3.3.1, Efraim Fogel, 09/24/2007
Archive powered by MHonArc 2.6.16.