Subject: CGAL users discussion list
List archive
- From: KHartmann <>
- To:
- Subject: [cgal-discuss] Getting handles from circulators
- Date: Wed, 6 May 2015 07:43:07 -0700 (PDT)
The following code compiles. (CDT is a constrained delaunay triangulation)
CDT::Vertex_handle v;
CDT::Vertex_circulator vc = cdt->incident_vertices( v );
CDT::Vertex_handle ivh = vc->handle();
CDT::Vertex_handle ivh1 = vc;
CDT::Face_handle f;
CDT::Face_circulator fc = cdt->incident_faces( v );
// CDT::Face_handle ifh = fc->handle();
CDT::Face_handle ifh1 = fc;
//////////////////////////////////////////////////////
Are lines 3 an 4 equivalent?
If I uncomment the commented-out line, it doesn't compile. Why?
What is the proper way to get a handle from a circulator?
Does it change given the circulator type?
I have read the documentation which is said to be my friend, but it tells me
to use *, but that doesn't compile either.
http://doc.cgal.org/latest/Circulator/index.html#Chapter_Handles_Ranges_and_Circulators
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Getting-handles-from-circulators-tp4660796.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Getting handles from circulators, KHartmann, 05/06/2015
- Re: [cgal-discuss] Getting handles from circulators, Laurent Rineau (CGAL/GeometryFactory), 05/06/2015
- Re: [cgal-discuss] Getting handles from circulators, KHartmann, 05/06/2015
- Re: [cgal-discuss] Getting handles from circulators, Laurent Rineau (CGAL/GeometryFactory), 05/06/2015
Archive powered by MHonArc 2.6.18.