Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] access point by id
- Date: Tue, 30 Aug 2011 08:35:18 +0200
- Organization: GeometryFactory
Hi Yifei,
The idea of the id is that it allows you to iterate
over the vertices once in order to associate indices
from 0 to |V|-1 to them. This allows then to associate
information to vertices in arrays.
best regards,
andreas
On 29/08/2011 20:09, Yifei Li wrote:
Hi all,
Given a polyhedron, how do you access a point by its id? I did not find
any API in the documentation.
My polyhedron is declared as follows:
template <class Refs, class P>
struct MyVertex : public CGAL::HalfedgeDS_vertex_max_base_with_id<Refs,
P, unsigned int> {
...
};
struct MyItems : public CGAL::Polyhedron_items_with_id_3 {
...
};
typedef CGAL::Polyhedron_3<Kernel, MyItems> Polyhedron
Thanks
Yifei
--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project
phone: +33.492.954.912 skype: andreas.fabri
- [cgal-discuss] access point by id, Yifei Li, 08/29/2011
- Re: [cgal-discuss] access point by id, Sebastien Loriot (GeometryFactory), 08/30/2011
- Re: [cgal-discuss] access point by id, Andreas Fabri, 08/30/2011
Archive powered by MHonArc 2.6.16.