Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: Guilherme Kunigami <>
  • To:
  • Subject: [cgal-discuss] Retrieve information from a halfedge in a circle arrangement
  • Date: Tue, 11 Aug 2009 16:28:28 -0300
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=RqEHYTpX6KEcnfAvEKL+uxlg98EP049Tpp3h1abOVkIqXbFlyD6A+eVeYfS/l2LQA7 ++dI86quowGOzVBRxAp+KE9O0RLz0TMSv3ZUfrcZ2SmKAQlyy1Dt/8kmouiVBD+w8xVp 6mRTZ/rJ1sm1nEKUrabZAHReqgATVzdV+RWDE=

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



Archive powered by MHonArc 2.6.16.

Top of Page