Subject: CGAL users discussion list
List archive
- From: Shrabani Ghosh <>
- To:
- Subject: Re: [cgal-discuss] Iterate over faces and getting their edges
- Date: Wed, 16 Oct 2019 15:20:05 -0400
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:O23X5hbNOItKUk3N1WGYqCb/LSx+4OfEezUN459isYplN5qZr8q6bnLW6fgltlLVR4KTs6sC17ON9f+9EjVcud6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vIhi6twfcu8kZjYd/Jas91gbCr2dVdehR2W5mP0+YkQzm5se38p5j8iBQtOwk+sVdT6j0fLk2QKJBAjg+PG87+MPktR/YTQuS/XQcSXkZkgBJAwfe8h73WIr6vzbguep83CmaOtD2TawxVD+/4apnVAPkhSEaPDM/7WrZiNF/jLhDrR2uqRxwwY7abo+WOvRjYK3SYcgXSnBdUstLTSFNHp+wYokJAuEcPehYtY79p14WoBWjBQmsHvngxSRSiX/w3K0xzuUvEQHB3Aw7H9IFrXPZrM7vNKgJV+C51qbIzTXEb/NN2Tfw7IzFfwsuofGJR71wcM7RxVMzGAPCi1WdsIroNC6b2OQKtmiU9etgVeS3hm4hsQ5+uSOgxsMyhYXTmo0VzVXE+T14wIYzP924SVR0bcSqEJtKry2VK4R2TdkmQ21yvyY60LIGtJimdyYJ0JQq3wDTZ+CDfoSS4R/uVPydLSlkiH9mYr6yhxm//E69wePmTMa0ykxFri9dn9nMqH8N0xvT59CCSvRn/0eh3S+D2B7O5e1ZOEw0m6rWJpE7zr4/kZoTtkvDHivol0nskKCWcUAk9vCp6+ThfLrmuoeRO5Fohgz6KKgjmcyyDf4mPgQSXGWX4+Sx2bL78U38WrpKj/k2kqfDsJDdIMQWvrW5AxVO3YYl8Rq/ADem0NMDnXkHKF9IfAmKj4fsO17UIfD4Ce2zjEirkDdu3/zGJKHuAo3RLnjfl7fsZapy60FGxwo31NxQ+pNUCqodL/LuQU/xr8fVDgQ5Mgyx2+boEs9x1oIYWWKVA6+WKrnesVGS5rFnHu+XeYVAuCrhM+N3oLn1nHohkBkce7Oo1N0ZcjejD/F+KgKYZ3TrxdwOGGNPsgslR/Hxkw6+VmtYaH+2Gq49/TomE5mODIHZR4nrjqbS8j28G8htZnpPAFmKED/Hd4KfW79YcziYJIlukjsfVenwY4Ak3BCq8gT9zuw0faLv5iQEuMe7h5BO7OrJmERqrG0mP4Gmy2iIClpMsCYNTj4y0rp4pBUkmFiG2Kl8xfdfEI4Kvq4bYkIBLZfZitdCJZXyVwbGJIrbTV+nRpCrDWh0QI9thdAJZEl5FpOpiRWRh3P2UY9QrKSCAdkPyoyZx2L4fp8vxHPP1a1nhF4jEJNC
Thank you . I am able to do it.
Regards
Shrabani Ghosh
You can use the range provided by halfedges_around_faces():
https://doc.cgal.org/latest/BGL/group__PkgBGLIterators.html#ga37229df31508a78eb4acdaf907e637e5
Sebastien.
On 10/13/19 6:43 AM, Shrabani Ghosh wrote:
> Hi,
>
> I need the edges info for specific faces. How I can iterate over edges of
> the faces. Like here it can iterate over vertices of the faces.
>
> int i=0;
> BOOST_FOREACH(face_descriptor f, faces(surface_mesh)){
> int j=0;
> CGAL::Vertex_around_face_iterator<Surface_mesh> vbegin, vend;
> for(boost::tie(vbegin, vend) =
> vertices_around_face(surface_mesh.halfedge(f), surface_mesh);
> vbegin != vend;
> ++vbegin){
> j++;
> std::cout << j << "th index of " << i << "th face: "<< *vbegin <<
> std::endl;
> }
> i++;
> }
>
> how to iterate over edges?
>
> Regards
> Shrabani Ghosh
>
>
>
>
> --
> Sent from: http://cgal-discuss.949826.n4.nabble.com/
>
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] Iterate over faces and getting their edges, Shrabani Ghosh, 10/13/2019
- Re: [cgal-discuss] Iterate over faces and getting their edges, Sebastien Loriot (GeometryFactory), 10/16/2019
- Re: [cgal-discuss] Iterate over faces and getting their edges, Shrabani Ghosh, 10/16/2019
- Re: [cgal-discuss] Iterate over faces and getting their edges, Sebastien Loriot (GeometryFactory), 10/16/2019
Archive powered by MHonArc 2.6.18.