Subject: CGAL users discussion list
List archive
- 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
- [cgal-discuss] Vertex index in a Cell (Delauney 3D), suejunghuh, 10/07/2009
- Re: [cgal-discuss] Vertex index in a Cell (Delauney 3D), Laurent Rineau (GeometryFactory), 10/08/2009
- Re: Re: [cgal-discuss] Vertex index in a Cell (Delauney 3D), suejunghuh, 10/08/2009
- Re: [cgal-discuss] Vertex index in a Cell (Delauney 3D), Camille Wormser, 10/08/2009
- Re: Re: [cgal-discuss] Vertex index in a Cell (Delauney 3D), suejunghuh, 10/08/2009
- Re: [cgal-discuss] Vertex index in a Cell (Delauney 3D), Sybren A . Stüvel, 10/08/2009
- Re: [cgal-discuss] Vertex index in a Cell (Delauney 3D), Suejung B. Huh, 10/15/2009
- Re: [cgal-discuss] Vertex index in a Cell (Delauney 3D), Camille Wormser, 10/08/2009
- Re: Re: [cgal-discuss] Vertex index in a Cell (Delauney 3D), suejunghuh, 10/08/2009
- Re: [cgal-discuss] Vertex index in a Cell (Delauney 3D), Laurent Rineau (GeometryFactory), 10/08/2009
Archive powered by MHonArc 2.6.16.