Skip to Content.
Sympa Menu

cgal-discuss - RE: [cgal-discuss] "Facet-vise" distortion of a Polyhedron_3

Subject: CGAL users discussion list

List archive

RE: [cgal-discuss] "Facet-vise" distortion of a Polyhedron_3


Chronological Thread 
  • From: "Merlin Etzold" <>
  • To: <>
  • Subject: RE: [cgal-discuss] "Facet-vise" distortion of a Polyhedron_3
  • Date: Tue, 5 Apr 2016 10:01:13 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:HIatuBPrnEiUN44eMnAl6mtUPXoX/o7sNwtQ0KIMzox0Kfz6rarrMEGX3/hxlliBBdydsKIUzbGH+PmxEUU7or+/81k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ35TxjLH5osybSj4LrQT+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf9d32JiKAHbtR/94sCt4MwrqHwI6Lpyv/NGSrjwKqQkUaRDXnNhKHEw/MSttB/ZTALJ6GFbSXQTihMPAg7L61bxUZ719yf7reFgwzLJAcqjGbs7UDDn46ZwQwLzkw8GMSQ4+SfZkJojorhcpUfrghFlx4/SKKyJJv16cumVKdYXX25AWM9cSz5GBo+UYI4GDu5HNuFd+dqu72ASpAezUFH/TNjkzSVF0yf7

Dear Andreas,

That looks very helpful - thank you very much! I will give it a try!

Best wishes,

Merlin :)

-----Original Message-----
From:


[mailto:]
On Behalf Of Andreas Fabri
Sent: 05 April 2016 10:30
To:

Subject: Re: [cgal-discuss] "Facet-vise" distortion of a Polyhedron_3

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

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss






Archive powered by MHonArc 2.6.18.

Top of Page