Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] insert voronoi edges into arrangement

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] insert voronoi edges into arrangement


Chronological Thread 
  • From:
  • To:
  • Subject: Re: [cgal-discuss] insert voronoi edges into arrangement
  • Date: Tue, 29 Apr 2008 11:13:50 +0300

Quoting
:

Hi List,
I'm new to CGAL and I'd like to do the following:

Insert the voronoi edges into an arrangement. Like this:


typedef CGAL::Voronoi_diagram_2<SDG2,SDG2_AT2,SDG2_AP2> VD;
typedef CGAL::Arr_conic_traits_2<Rat_kernel,
Alg_kernel,
Nt_traits> Traits_2;
typedef CGAL::Arrangement_2<Traits_2> Arrangement_2;

VD vd;
Arrangement_2 arr;

Edge_iterator eit = vd.edges_begin();
for ( ; eit != vd.edges_end(); ++eit) {
insert_curve(arr, *eit);
}

*eit is no curve, so I get an error, but how can I do it otherwise ?

You got it. You have to insert the curve. Extract the curve from the Voronoi edge iterator, and insert it.


Can someone help me?

Thank you very much in advance,
Paul
--
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