Subject: CGAL users discussion list
List archive
- From: Karen Daniels <>
- To:
- Subject: Re: [cgal-discuss] CGAL question about extracting vertex list
- Date: Mon, 03 Oct 2011 12:59:51 -0400
Thanks.
Also, I see how to iterate over the vertices in a face of a triangulation, but what if I want to iterate over all the vertices in the entire triangulation (without explicitly navigating each face)?
- Karen
On 10/3/2011 10:53 AM, Sebastien Loriot (GeometryFactory) wrote:
In triangulations, iterators are over vertices and not over handles.
If you want to avoid the copy of vertex iterators (which are implicitly
convertible to vertex handle) into your own container, you need to write
an iterator on top of the vertex iterator, where operator* returns the
handle.
For example, you can use boost::iterator_facade for this.
Sebastien.
Karen Daniels wrote:
How do we obtain an iterator to an iterable collection(vector, list, deque) of vertex_handles to all points in a triangulation? (There should be exactly 1 vertex handle for each point).
- Karen Daniels
-------------------------------------------
Karen Daniels, Ph.D.
Associate Professor
Department of Computer Science
University of Massachusetts Lowell
One University Avenue
Olsen Hall, Room 216
Lowell, MA 01854
Phone: 978-934-3631
Fax: 978-934-3551
Email:
URL: http://www.cs.uml.edu/~kdaniels
--
-------------------------------------------
Karen Daniels, Ph.D.
Associate Professor
Department of Computer Science
University of Massachusetts Lowell
One University Avenue
Olsen Hall, Room 216
Lowell, MA 01854
Phone: 978-934-3631
Fax: 978-934-3551
Email:
URL: http://www.cs.uml.edu/~kdaniels
- [cgal-discuss] CGAL question about extracting vertex list, Karen Daniels, 10/03/2011
- Re: [cgal-discuss] CGAL question about extracting vertex list, Sebastien Loriot (GeometryFactory), 10/03/2011
- Re: [cgal-discuss] CGAL question about extracting vertex list, Karen Daniels, 10/03/2011
- Re: [cgal-discuss] CGAL question about extracting vertex list, Laurent Rineau (GeometryFactory), 10/03/2011
- Re: [cgal-discuss] CGAL question about extracting vertex list, Karen Daniels, 10/03/2011
- Re: [cgal-discuss] CGAL question about extracting vertex list, Sebastien Loriot (GeometryFactory), 10/03/2011
Archive powered by MHonArc 2.6.16.