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: Nizar Khalifa Sallem <>
  • To:
  • Subject: Re: [cgal-discuss] access facets from cell iterator
  • Date: Wed, 29 Oct 2008 12:43:28 +0100

Laurent Rineau wrote:
On Wednesday 29 October 2008 11:42:35 Nizar Khalifa Sallem wrote:
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?

The documentation says:
typedef std::pair<Cell_handle, int> Facet;

Then, it means that you have to look at the documentation of std::pair, to get your answers.

The constructor Facet(Cell_handle, int) is the constructor std::pair<T1,T2>(T1,T2).

You can also use std::make_pair.

or is there an accessor like this Facet f = cell->facet(i) ?

No. You need to write:
Facet f = Facet(cell, i);
or:
Facet f(cell,i);
(the latter construction triggers a bug in Microsoft VC++ compiler).

Thank you guys, now I can go further :)




Archive powered by MHonArc 2.6.16.

Top of Page