Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] access point by id

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] access point by id


Chronological Thread 
  • 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



Archive powered by MHonArc 2.6.16.

Top of Page