Subject: CGAL users discussion list
List archive
- From: "Atul Thakur" <>
- To:
- Subject: Re: [cgal-discuss] Traversing the vertices of a facet in c2t3
- Date: Sun, 23 Nov 2008 22:05:10 -0500
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=XePbjQyc+DrH4OLZOKqO26WjnABk3G0InxArgSG8+djBCaSG7X7Ij9dql+hpWGFTD7 unE5QfSZf3tRfU4RI9yATZ17xC6OAjbuz2wf3CGoJT4sVc/QpRAEeXZmQxmxysKvaTMq seEvk9S4ymeuz/17EnQ/EA7Eblfv7iNwEALt4=
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.
- [cgal-discuss] Traversing the vertices of a facet in c2t3, Amir Vaxman, 11/23/2008
- Re: [cgal-discuss] Traversing the vertices of a facet in c2t3, Atul Thakur, 11/24/2008
- RE: [cgal-discuss] Traversing the vertices of a facet in c2t3, Amir Vaxman, 11/24/2008
- Re: [cgal-discuss] Traversing the vertices of a facet in c2t3, Mariette Yvinec, 11/24/2008
- Re: [cgal-discuss] Traversing the vertices of a facet in c2t3, Atul Thakur, 11/24/2008
Archive powered by MHonArc 2.6.16.