Subject: CGAL users discussion list
List archive
- From: Adam Getchell <>
- To:
- Subject: Re: [cgal-discuss] Example use of incident_cells?
- Date: Tue, 14 Nov 2017 01:25:07 -0800
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:XUtkshLQNYA8v3mvPdmcpTZWNBhigK39O0sv0rFitYgUK/vxwZ3uMQTl6Ol3ixeRBMOAtKIC1rKempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBWB6kC09iMYTxXjKRJudKOyAZ/Xl83x1uao+pSVbR8Pnyu4ebo1LRO4qkLaucASxIdjMa0s0QCannwdcOtfwSZkJEmYgg3nzsa25p9qtSpK6Nw78MsVeKnzeuwXQKBTDDkiNyhh7cHisF/MQBeE5nYYVk0ZlxNJB07O6xSsDcS5iTfzqucogHrSBsbxV71hATk=
Thank you!
--
Adam Getchell
https://keybase.io/adamgetchell
https://keybase.io/adamgetchell
Hello Adam,
Use std::back_inserter(inc_cells)
See also:
https://doc.cgal.org/latest/Manual/tutorial_hello_world.html
best,
andreas
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/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [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.