Subject: CGAL users discussion list
List archive
- From: Laurent Rineau <>
- To:
- Subject: Re: [cgal-discuss] access facets from cell iterator
- Date: Wed, 29 Oct 2008 12:07:02 +0100
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).
--
Laurent Rineau, PhD
Engineer at GeometryFactory
http://www.geometryfactory.com/
- [cgal-discuss] use of Trinagulation_cell_base_with_info_3, Nizar Khalifa Sallem, 10/29/2008
- Re: [cgal-discuss] use of Trinagulation_cell_base_with_info_3, Laurent Rineau, 10/29/2008
- [cgal-discuss] access facets from cell iterator, Nizar Khalifa Sallem, 10/29/2008
- Re: [cgal-discuss] access facets from cell iterator, Daniel Duque Campayo, 10/29/2008
- Re: [cgal-discuss] access facets from cell iterator, Laurent Rineau, 10/29/2008
- Re: [cgal-discuss] access facets from cell iterator, Nizar Khalifa Sallem, 10/29/2008
- [cgal-discuss] access facets from cell iterator, Nizar Khalifa Sallem, 10/29/2008
- Re: [cgal-discuss] use of Trinagulation_cell_base_with_info_3, Andreas Fabri, 10/29/2008
- Re: [cgal-discuss] use of Trinagulation_cell_base_with_info_3, Nizar Khalifa Sallem, 10/29/2008
- Re: [cgal-discuss] use of Trinagulation_cell_base_with_info_3, Laurent Rineau, 10/29/2008
Archive powered by MHonArc 2.6.16.