Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Method for populating container with finite_vertices?
- Date: Thu, 28 Apr 2016 21:54:45 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:IAmIWBTIUY9i6mEJxJTWR4fWeNpsv+yvbD5Q0YIujvd0So/mwa64YhKN2/xhgRfzUJnB7Loc0qyN4/CmCTBLuM3d+Fk5M7VyFDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5K6zPF5LIiIzvjqbpq82VM1kD3WHhKZpJbzyI7izp/vEMhoVjLqtjgjDomVBvP9ps+GVzOFiIlAz97MrjtLRq8iBXpu5zv5UYCfayLOwESulTAz0idmw0/8b2rgLrTA2V53JaXH9FvABPBl2P1xzwV4ztsyb8/s56wiidIYW2Yr0zXDm+9bZFQRT0jz0WdnRxpHrTjdZxi74dpRaJqBl2woqSa4aQYqktNpjBdM8XEDISFv1aUDZMV9ux
- Organization: GeometryFactory
On 04/28/2016 09:50 PM, Andreas Fabri wrote:
std::vector<Vertex_handle> V(t.finite_vertices_begin(),
finite_vertices_end());
or the same with std::vector::insert(b.e)
@Andreas I guess you meant std::vector<Vertex>.
@Adam, since Finite_vertex_iterator is convertible to Vertex_handle
you need a tranform_iterator that do not dereference the iterator.
Better do a classic for-loop
Sebastien.
andreas
On 28/04/2016 21:26, Adam Getchell wrote:
Hi all,
Just in case I missed it in the documentation, is there a method which
pushes all finite_vertices into a std::vector<Vertex_handle>?
(I know it’s trivial to write with the Finite_vertex_iterator, checking
to see if I even need that.)
--
Adam Getchell
about.me/adamgetchell <http://about.me/adamgetchell>
- [cgal-discuss] Method for populating container with finite_vertices?, Adam Getchell, 04/28/2016
- Re: [cgal-discuss] Method for populating container with finite_vertices?, Andreas Fabri, 04/28/2016
- Re: [cgal-discuss] Method for populating container with finite_vertices?, Sebastien Loriot (GeometryFactory), 04/28/2016
- Re: [cgal-discuss] Method for populating container with finite_vertices?, Adam Getchell, 04/28/2016
- Re: [cgal-discuss] Method for populating container with finite_vertices?, Sebastien Loriot (GeometryFactory), 04/28/2016
- Re: [cgal-discuss] Method for populating container with finite_vertices?, Andreas Fabri, 04/28/2016
Archive powered by MHonArc 2.6.18.