Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Retrieve information from a halfedge in a circle arrangement

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Retrieve information from a halfedge in a circle arrangement


Chronological Thread 
  • From:
  • To:
  • Subject: Re: [cgal-discuss] Retrieve information from a halfedge in a circle arrangement
  • Date: Tue, 11 Aug 2009 23:53:27 +0300

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?

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.


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






Archive powered by MHonArc 2.6.16.

Top of Page