Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Own Types as Sites in a voronoi diagram?

Subject: CGAL users discussion list

List archive

[cgal-discuss] Own Types as Sites in a voronoi diagram?


Chronological Thread 
  • From: <>
  • To:
  • Subject: [cgal-discuss] Own Types as Sites in a voronoi diagram?
  • Date: Wed, 11 Feb 2009 00:07:21 +0100 (CET)

Hi there,

after managing getting CGAL to work with Visual Studio 2009 I played around
with some examples - which works pretty good, thanks for them :)

I need to put some "custom" data in a voronoi diagram. For example: If I add a
new point to a diagram and query it I get back a "Vertex_handle". At least is
the the example telling me this:

Locate_result lr = vd.locate(p);
if ( Vertex_handle* v = boost::get<Vertex_handle>(&lr) { ... }

Ideally I would like to get back a type of mine (which should extend
Vertex_handle I guess) in which I could attach some information to a vertex in
the diagram. Is there a way to achive this? It would be really nice if you
could point me in the right direction.

Thanks in advance,
Tom



Archive powered by MHonArc 2.6.16.

Top of Page