Subject: CGAL users discussion list
List archive
- From: gwf421 <>
- To:
- Subject: [cgal-discuss] Re: New to CGAL, problem with simple operations
- Date: Sun, 27 Nov 2011 22:44:30 -0800 (PST)
>> P.make_triangle(p,q,r);
>> std::cout << "H Edge info:" << std::endl;
>> for ( Halfedge_iterator hit = P.vertices_begin(); hit !=
>> P.vertices_end(); ++v)
>> std::cout << hit->vertex()->point() << std::endl;
The third line quoted above shows that you've passed a vertices_begin() to
Halfedge_iterator.
vertices_begin() returns an iterator of vertex, which is definitely
incompactable with a Halfedge_iterator receiver "hit".
Try the following:
for (Halfedge_iterator hit = P.halfedges_begin(); hit != P.halfedges_end();
++hit)
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/New-to-CGAL-problem-with-simple-operations-tp953536p4114329.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Re: New to CGAL, problem with simple operations, gwf421, 11/28/2011
Archive powered by MHonArc 2.6.16.