Subject: CGAL users discussion list
List archive
- From: "Suejung B. Huh" <>
- To:
- Subject: Re: [cgal-discuss] How to navigate Outputiterator for inicident_edges?
- Date: Wed, 14 Oct 2009 09:15:38 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; b=VFWZLuUYbGpOGovMemoxmSw/wXdgeCSbOCnx4pPJLfygdrKK3IEkTyuzqRNR8feSFi z+t0554Hs9Ha8iQn+Uy5b/O1wSVd9ZvMYhfaEDIVXRgtBKchSdMwYKSO2vT5kaMKovVn l5np8ZVXHu4W00AHvmbJ+Nang0835wF3GmeBQ=
Thanks, Manuel,
But does anyone have an example code to use "OutputIterator"?
I am not sure how to use
t.finite_incident_cells ( Vertex_handle v, OutputIterator cells)
without ending condition.
Thanks in advance,
-s
On Fri, Oct 9, 2009 at 1:43 AM, Manuel Caroli <> wrote:
Dear Suejung,
wrote:
[...]note that there is a Finite_cells_iterator that does this automatically
int main()
{
Delaunay T;
std::ifstream in("data/voronoi.cin");
Point p;
while(in >> p){
T.insert(p);
}
cout << "All Cells ----------------------------\n";
Cell_iterator cit =T.cells_begin();
for ( ; cit !=T.cells_end(); ++cit) {
if (! T.is_infinite(cit)) continue;
I am not sure to understand what you want to do. What do you mean by edges incident to a cell? These are the edges of the cell that you can extract immediately. There is a function incident_edges that gives you the edges incident to a *vertex*. In this case you have to provide it with an output iterator as second argument.
// T.incident_edges(cit) ?????? <<--- Want to find edges!!!
To understand the internal representation of a triangulation please read chapter 35.1 of the user manual (of CGAL 3.6): http://www.cgal.org/Manual/last/doc_html/cgal_manual/Triangulation_3/Chapter_main.html
For the available access functions see the reference documentation: http://www.cgal.org/Manual/last/doc_html/cgal_manual/Triangulation_3_ref/Class_Triangulation_3.html
hope this helps
Manuel
}
return 0;
}
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- [cgal-discuss] How to navigate Outputiterator for inicident_edges?, suejunghuh, 10/09/2009
- Re: [cgal-discuss] How to navigate Outputiterator for inicident_edges?, Manuel Caroli, 10/09/2009
- Re: [cgal-discuss] How to navigate Outputiterator for inicident_edges?, Suejung B. Huh, 10/14/2009
- Re: [cgal-discuss] How to navigate Outputiterator for inicident_edges?, Manuel Caroli, 10/14/2009
- Re: [cgal-discuss] How to navigate Outputiterator for inicident_edges?, Andreas Fabri, 10/14/2009
- Re: [cgal-discuss] How to navigate Outputiterator for inicident_edges?, Suejung B. Huh, 10/14/2009
- Re: [cgal-discuss] How to navigate Outputiterator for inicident_edges?, Suejung B. Huh, 10/14/2009
- Re: [cgal-discuss] How to navigate Outputiterator for inicident_edges?, Manuel Caroli, 10/09/2009
Archive powered by MHonArc 2.6.16.