Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Face_handle from face?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Face_handle from face?


Chronological Thread 
  • From: Chris Marsh <>
  • To:
  • Subject: Re: [cgal-discuss] Face_handle from face?
  • Date: Tue, 25 Nov 2014 12:45:27 -0600

I do this:

    for (Delaunay::Finite_faces_iterator fit = this->finite_faces_begin();
         fit != this->finite_faces_end(); ++fit)
    {
        Delaunay::Face_handle face = fit;

Where Delaunay is just
typedef CGAL::Delaunay_triangulation_2<Gt, Tds> Delaunay; //specify a delauany triangulation

Cheers
Chris

On Tue, Nov 25, 2014 at 12:41 PM, Jack Stalnaker <> wrote:
How do I get a Face_handle from a face? If I use a finite_faces_iterator in an STL algorithm, it dereferences the iterator to a face, but I'd like to use Triangle CGAL::Triangulation_2< Traits, Tds >::triangle, which only accepts Face_handles.  

Thanks.




Archive powered by MHonArc 2.6.18.

Top of Page