Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

[cgal-discuss] access facets from cell iterator


Chronological Thread 
  • From: Nizar Khalifa Sallem <>
  • To:
  • Subject: [cgal-discuss] access facets from cell iterator
  • Date: Wed, 29 Oct 2008 11:42:35 +0100

Another question from a CGAL beginner.
As I understood cells_iterator can be converted to cell_handler.
And a Facet is a pair<cell_handler, int> but does it provide constructor?
In other words can I acces facets of a cell this way (I didn't use facets_iterator since I need some information stored in the cell):

===============================================================
Delaunay::Finite_cells_iterator cell;
for (cell = Delaunay.finite_cells_begin(); cell != Delaunay.finite_cells_end(); cell++){
for (int i=0, i<4, ++i){
Facet f = Facet(cell, i);
}
}
================================================================
or have I to write something like Facet f = std::make_pair(cell, i) ?
or is there an accessor like this Facet f = cell->facet(i) ?

Thanks




Archive powered by MHonArc 2.6.16.

Top of Page