Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Vertex index in a Cell (Delauney 3D)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Vertex index in a Cell (Delauney 3D)


Chronological Thread 
  • From: Camille Wormser <>
  • To: <>
  • Subject: Re: [cgal-discuss] Vertex index in a Cell (Delauney 3D)
  • Date: Thu, 8 Oct 2009 00:42:08 +0200

I want to know the original vertex index of each vertex.

For example, if I gave 100 vertices and a cell is made of vertices
30,31,40,49, I want to know these indices, 30,31,40,49.

This information is not stored in the triangulation. You will have to do the conversion from Vertex_handle to original indices yourself.

You have two options for this: either storing the original index in the vertex (check the Vertex_with_info class), or building a std::map<Vertex_handle, size_t> while you insert the points into the triangulation.

Note that if you insert the same point more than once, only one vertex is created...
--
Camille




Archive powered by MHonArc 2.6.16.

Top of Page