Skip to Content.
Sympa Menu

cgal-discuss - RE: [cgal-discuss] Traversing the vertices of a facet in c2t3

Subject: CGAL users discussion list

List archive

RE: [cgal-discuss] Traversing the vertices of a facet in c2t3


Chronological Thread 
  • From: "Amir Vaxman" <>
  • To: <>
  • Subject: RE: [cgal-discuss] Traversing the vertices of a facet in c2t3
  • Date: Mon, 24 Nov 2008 09:34:38 +0200

How do I convert from a c2t3 surface to a polyhedron? If such a thing is needed..

 

From: Atul Thakur [mailto:]
Sent: Monday, November 24, 2008 5:05 AM
To:
Subject: Re: [cgal-discuss] Traversing the vertices of a facet in c2t3

 

Hi Amir,
You can use HF_circulator. I also used it.
Here is the part of my code that might be of use--
typedef CGAL::Convex_hull_traits_3<K>             chTraits;
typedef chTraits::Polyhedron_3                      Polyhedron_3;
typedef Polyhedron_3::Halfedge_around_facet_circulator HF_circulator;
for ( Facet_iterator facet = conv_hull.facets_begin(); facet != conv_hull.facets_end(); ++facet)
{                   
    vector<Point3> set1;   
    HF_circulator h = facet->facet_begin();
    size_t order = 0;
    do
    {
      Point3 point =  h->vertex()->point();
      set1.push_back(point);
    }
}

best,

-Atul

On Sun, Nov 23, 2008 at 10:13 AM, Amir Vaxman <> wrote:

Hello,

 

How do I traverse the vertices in a facet (given to me as a facet_iterator through a Surface_mesh_complex_2_in_triangulation_3<Tr> class)?

 

Amir.

 




Archive powered by MHonArc 2.6.16.

Top of Page