Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Triangulation_3::Facet_circulator and how to get its cell_handle and index...
Chronological Thread
- From: Laurent Rineau <>
- To:
- Subject: Re: [cgal-discuss] Triangulation_3::Facet_circulator and how to get its cell_handle and index...
- Date: Fri, 13 Jul 2007 12:06:46 +0200
- Organization: Inria, Sophia Antipolis, FRANCE
On Friday 13 July 2007 11:37:18 Thomas Zangl - Home wrote:
> Dear List,
>
> I am stuck getting the cell_handle and the index i out of a
> Triangulation_3::Facet_circulator.
>
> I converted some code using a Facet_iterator to a Facet_circulator
> and, even that the circulator and the iterators data_type are supposed
> to be the same, it does not work any longer. (compile error)
>
> The code look like this:
> Rt_Facet_circulator fCirc,fCircDone = t.incident_facets(*eIt);
> do {
> if (t.is_infinite(*fCirc)) continue;
>
> cout << "---------------------------- Next face
> ----------------------------" << endl; // cell which the facet is part of
> Rt_Cell_handle cell = fCirc->first;
> // this is the index of the facet's opposite vertex
> int faceIndex = fCirc->second;
> }
>
> The errors are of some kind "fCirc" has no member first and no member
> second.
Hi,
Accdording to the documentation, your code should be correct. However, the
type Facet_circulator of 3D triangulation do not have operator->. That is a
bug.
For the moment, use "(*fCirc).first" instead of "fCirc->first".
--
Laurent Rineau
INRIA - Sophia Antipolis
BP 93, 2004 Route des Lucioles
06902 Sophia Antipolis Cedex FRANCE
- Triangulation_3::Facet_circulator and how to get its cell_handle and index..., Thomas Zangl - Home, 07/13/2007
- Re: [cgal-discuss] Triangulation_3::Facet_circulator and how to get its cell_handle and index..., Laurent Rineau, 07/13/2007
- Re: [cgal-discuss] Triangulation_3::Facet_circulator and how to get its cell_handle and index..., Camille . Wormser, 07/13/2007
- Re: [cgal-discuss] Triangulation_3::Facet_circulator and how to get its cell_handle and index..., Laurent Rineau, 07/13/2007
- Re:[cgal-discuss] Triangulation_3::Facet_circulator and how to get its cell_handle and index..., Thomas Zangl - Home, 07/13/2007
- Re: [cgal-discuss] Triangulation_3::Facet_circulator and how to get its cell_handle and index..., Laurent Rineau, 07/13/2007
Archive powered by MHonArc 2.6.16.