Subject: CGAL users discussion list
List archive
- From: "Ophir Setter" <>
- To:
- Subject: Re: [cgal-discuss] insert voronoi edges into arrangement
- Date: Tue, 29 Apr 2008 12:13:43 +0300
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=jPqV15cSaeRPrEA6txiRbOrgKqmAZiT0rgrJwlxUcBMfknpHkPre41zJcvIWjAV5eoelmBFvriXjwPQkTXKMmi3hehzqk9MoPBxfZ8fM9pSRIydR+cxmIKd7nltrTiRKQAnZ9xxbQ+YcZQaaZfYHMLaHbZn3enAt7ZECUYgRDvw=
It will probably be faster to use the specialized functions and not the general purpose one.
http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Arrangement_2/Chapter_main.html#Subsection_20.2.3
On Tue, Apr 29, 2008 at 12:00 PM, Efi Fogel <> wrote:
Paul Neugebauer wrote:By extract I mean that the information for constructing the curve or even the curve itself is available in the record pointed by (*eit), and should be obtained from there. Please consult the documentation.
Thank you for the reply,
I tried this:
Traits_2::Curve_2 Curve_2;
...
insert_curve(arr, Curve_2(*eit));
...
but still get an error. So what exactly do you mean with "extract".
____ _ ____ _
--
Thank you,
Paul
schrieb:
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
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- insert voronoi edges into arrangement, neugebap, 04/28/2008
- Re: [cgal-discuss] insert voronoi edges into arrangement, efif, 04/29/2008
- Re: [cgal-discuss] insert voronoi edges into arrangement, Paul Neugebauer, 04/29/2008
- Re: [cgal-discuss] insert voronoi edges into arrangement, Efi Fogel, 04/29/2008
- Re: [cgal-discuss] insert voronoi edges into arrangement, Ophir Setter, 04/29/2008
- Re: [cgal-discuss] insert voronoi edges into arrangement, Efi Fogel, 04/29/2008
- Re: [cgal-discuss] insert voronoi edges into arrangement, Paul Neugebauer, 04/29/2008
- Re: [cgal-discuss] insert voronoi edges into arrangement, efif, 04/29/2008
Archive powered by MHonArc 2.6.16.