Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] "Facet-vise" distortion of a Polyhedron_3
- Date: Tue, 5 Apr 2016 11:29:31 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:4o4sOR8OBnzX7P9uRHKM819IXTAuvvDOBiVQ1KB91eIcTK2v8tzYMVDF4r011RmSDdWdsKMP0rKempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lSsiJ3o/uj6ibwN76XUZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwuxJ54K16spYcGeWnJ+VrBYBfWT8pOmRw6MzwvgTYViOO4GEdWyMYiElmGQ/AuTj8Uo38uzCymON3wijSacTwQao5UC/k4a5hUh7AhyoAMjMl6nDZg8dsi7hK5hmmokoskMbvfIiJOa8mLevmdtQASD8cBss=
- Organization: GeometryFactory
Hello,
You can use
http://doc.cgal.org/4.8/BGL/group__PkgBGLIterators.html#ga7746cb7b28520877375dfff6ec7bd32c
as follows:
typedef boost::graph_traits<Polyhedron>::vertex_descriptor
vertex_descriptor;
typedef boost::graph_traits<Polyhedron>::face_descriptor
face_descriptor;
Polyhedron P;
BOOST_FOREACH(face_descriptor fd, faces(P)){
BOOST_FOREACH(vertex_descriptor vd,
CGAL::vertices_around_face(halfedge(fd,P),P)){
std::cout << vd->point() << std::endl;
}
}
andreas
On 05/04/2016 11:22, Merlin Etzold wrote:
Dear All,
I have 3D Polyhedra which I want to represent as Polyhedron_3 which
shall represent growing shapes. To simulate the growth process I want to
shift individual facets along their normal direction. My strategy to do
this is to access the vertices belong to the facets and apply a
translation them towards the desired direction.
However, as an inexperienced CGAL user I struggle a bit finding the best
strategy to access the vertices belonging to the neighbouring facets. Is
there an easy way to get an iterator for the vertices belonging to a facet?
Thank you and best wishes,
Merlin
--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project
phone: +33.492.954.912 skype: andreas.fabri
- [cgal-discuss] "Facet-vise" distortion of a Polyhedron_3, Merlin Etzold, 04/05/2016
- Re: [cgal-discuss] "Facet-vise" distortion of a Polyhedron_3, Andreas Fabri, 04/05/2016
- RE: [cgal-discuss] "Facet-vise" distortion of a Polyhedron_3, Merlin Etzold, 04/05/2016
- Re: [cgal-discuss] "Facet-vise" distortion of a Polyhedron_3, Merlin Etzold, 04/05/2016
- Re: [cgal-discuss] "Facet-vise" distortion of a Polyhedron_3, Andreas Fabri, 04/05/2016
Archive powered by MHonArc 2.6.18.