Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Example use of incident_cells?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Example use of incident_cells?


Chronological Thread 
  • 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!



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






Archive powered by MHonArc 2.6.18.

Top of Page