Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] Example use of incident_cells?
- Date: Tue, 14 Nov 2017 09:53:57 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:3quoPRK9lciT3Re6z9mcpTZWNBhigK39O0sv0rFitYgXLfjxwZ3uMQTl6Ol3ixeRBMOAtKIC1rKempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBWB6kG1uDUdExG6OQtuLfnuAabTid623qa84c79eQJN0RO7bal/JQ7+gwzbrMhe1YJkJrw8wwCPrHJCYeV+ym5vIF+PhQfy78ys+4RytS9XvqRypIZ7TazmcvFgHvRjBzM8PjVt6Q==
Hello Adam,
Use std::back_inserter(inc_cells)
See also:
https://doc.cgal.org/latest/Manual/tutorial_hello_world.html
best,
andreas
On 11/14/2017 9:41 AM, Adam Getchell wrote:
Hello all,
Is there an example on using OutputIterator <https://doc.cgal.org/latest/Manual/classOutputIterator.html> CGAL::Triangulation_3 <https://doc.cgal.org/latest/Triangulation_3/classCGAL_1_1Triangulation__3.html>< Traits, TDS, SLDS >::incident_cells(Vertex_handle <https://doc.cgal.org/latest/Triangulation_3/classCGAL_1_1Triangulation__3.html#a1ba56e37b3a5acb1ba49a56d9d101a19> v,OutputIterator <https://doc.cgal.org/latest/Manual/classOutputIterator.html> cells )const to write all cells incident to vertex v?
I’m trying to do something like:
// Insert new vertex
Vertex_handle v_center = universe.triangulation->tds().insert_in_facet(
bottom, neighboring_31_index);
// Check that vertex is in center of 6 simplices
std::vector<Cell_handle> inc_cells;
universe.triangulation->tds().incident_cells(v_center, inc_cells);
(Where incident_cells() generates a few dozen lines of template errors.)
--
Adam Getchell
https://keybase.io/adamgetchell
--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project
phone: +33.492.954.912 skype: andreas.fabri
- [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.