Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] access facets from cell iterator

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] access facets from cell iterator


Chronological Thread 
  • From: Daniel Duque Campayo <>
  • To:
  • Subject: Re: [cgal-discuss] access facets from cell iterator
  • Date: Wed, 29 Oct 2008 11:55:41 +0100

Hello.

Facet is a std::pair, so you could construct a Facet, the asign its first and
second parts:


===============================================================
Delaunay::Finite_cells_iterator cell;

for (cell = Delaunay.finite_cells_begin(); cell !=
Delaunay.finite_cells_end(); cell++){
Facet f;
f.first= *cell;
    for (int i=0, i<4, ++i){
f.second= i;
...
    }
  }
================================================================

The "*cell" is needed since cell is an iterator (not a cell).

Best,

Daniel


--
Daniel Duque
http://rincon.uam.es/dir?cw=950067138671875



Archive powered by MHonArc 2.6.16.

Top of Page