Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Retrieve information from a halfedge in a circle arrangement
Chronological Thread
- From: Guilherme Kunigami <>
- To:
- Subject: Re: [cgal-discuss] Retrieve information from a halfedge in a circle arrangement
- Date: Wed, 12 Aug 2009 13:42:49 -0300
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=b56PKqZc0ichCTBgeZKPV93MAw6b/DT+G/Ju70vRE1/Gc9UQDZ60lbiYKfVrcj1HrX NWHv29RgEfP2YA94Lky35wybUK6t0QGKb9W/zQbRi6fqwS0+zLlT00yBNCKQMaxPBib9 UbBCKRZJlCs7rNQGzH4g8m45E8Lez0ie52Ijs=
Thank you very much!
On Tue, Aug 11, 2009 at 5:53 PM, <> wrote:
It is actually Traits::X_monotone_curve_2, where Traits is the type you used to instantiate your arrangement with, that is CGAL::Arr_circle_segment_traits_2<Kernel>. It is a model of ArrangementTraits_2 and there you can see some of the operations that apply to your curve.Quoting "Guilherme Kunigami" <>:
The following example constructs an arrangement with three circles:
http://www.cgal.org/Manual/3.4/examples/Arrangement_on_surface_2/circles.cpp
Then I used the code in 'examples/Arrangement_on_surface_2/arr_print.h' to
print the arrangement. I'm interested in the output of the 'he->curve' in
the code below (from arr_print.h):
===
void print_ccb (Arrangement_2::Ccb_halfedge_const_circulator circ)
{
Ccb_halfedge_const_circulator curr = circ;
std::cout << "(" << curr->source()->point() << ")";
do {
Arrangement_2::Halfedge_const_handle he = curr->handle();
std::cout << " [" << he->curve() << "] "
<< "(" << he->target()->point() << ")";
} while (++curr != circ);
std::cout << std::endl;
}
===
'cout << he->curve()' prints the circle to which the arc belongs and then
the endpoints. I would like to extract such information from he->curve(). If
I understood well, the return type of he->curve is
'Arrangement_2::X_monotone_curve_2', but I couldn't find the documentation
for it.
Could someone help me?
Thanks,
--
Guilherme Kunigami
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
--
Guilherme Kunigami
- [cgal-discuss] Retrieve information from a halfedge in a circle arrangement, Guilherme Kunigami, 08/11/2009
- Re: [cgal-discuss] Retrieve information from a halfedge in a circle arrangement, efif, 08/11/2009
- Re: [cgal-discuss] Retrieve information from a halfedge in a circle arrangement, Guilherme Kunigami, 08/12/2009
- Re: [cgal-discuss] Retrieve information from a halfedge in a circle arrangement, efif, 08/11/2009
Archive powered by MHonArc 2.6.16.