Subject: CGAL users discussion list
List archive
- From: MaelRL <>
- To:
- Subject: Re: [cgal-discuss] Example use of incident_cells?
- Date: Tue, 14 Nov 2017 01:54:19 -0700 (MST)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=Pass
- Ironport-phdr: 9a23:4SJ4/hwxRLNUxLnXCy+O+j09IxM/srCxBDY+r6Qd0u0XIJqq85mqBkHD//Il1AaPBtqLra8cw8Pt8IneGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2NBXupSi54jcWXxn+LgFoPf/dG4jIjs3x2frh1YfUZlBtjTe5W5c6eBC/oAGXrM4LkYZmbKI4wBHEinRFfOFb2Xl5K1uYgxHm94G7+5s1oHcYgO4o68MVCfayRK8/V7ENVDk=
Hello,
You must provide an OuputIterator, so you can't directly pass "inc_cells"
since it is a container. You can use for example std::back_inserter() to
create an OutputIterator. That is:
std::vector<Cell_handle> inc_cells;
cells.reserve(64);
universe.triangulation.incident_cells(v_center,
std::back_inserter(inc_cells));
Note that you also don't need to always go through the TDS: the
triangulation classes provide wrappers to most of the functions such as
incident_cells.
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Example use of incident_cells?, Adam Getchell, 11/14/2017
- Re: [cgal-discuss] Example use of incident_cells?, Andreas Fabri, 11/14/2017
- Re: [cgal-discuss] Example use of incident_cells?, MaelRL, 11/14/2017
- Re: [cgal-discuss] Example use of incident_cells?, Adam Getchell, 11/14/2017
Archive powered by MHonArc 2.6.18.