Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] A Triangulations problem

Subject: CGAL users discussion list

List archive

[cgal-discuss] A Triangulations problem


Chronological Thread 
  • From: "zhoufang8811" <>
  • To: "cgal-discuss" <>
  • Subject: [cgal-discuss] A Triangulations problem
  • Date: Wed, 3 Mar 2010 19:45:04 +0800

Hi,
 
Now I am using the Triangulations Algorithom,I have a problem that how can I get the sequence number of the vertices after inserted ?
 
I use this method but it is inefficiency :
 
Triangulation tr;
 
size_type get_vertex_no(Vertex_handle vh) {
Vertex_iterator vit = tr.vertices_begin();
size_type no = 0;
for (; vit != tr.vertices_end() ; ++vit) {
if (vh == vit)
break;
no ++;
}
return no;
}
 
2010-03-03

zhoufang8811



Archive powered by MHonArc 2.6.16.

Top of Page