Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Access vertices of faces in Delaunay

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Access vertices of faces in Delaunay


Chronological Thread 
  • From: Manuel Caroli <>
  • To:
  • Subject: Re: [cgal-discuss] Access vertices of faces in Delaunay
  • Date: Mon, 16 Feb 2009 17:26:18 +0100

Hi Matthias,

the method
insert ( InputIterator first, InputIterator last)
does not guarantee to insert the points in the order of the InputIterator.

I don't understand how you assign the indices to your vertices but might it be related to the possible scrambling of the insertion order?

best

Manuel



wrote:
Many thanks! It works.

However i found an interesting problem. If i insert the points one after each
after to the triangulation it works fine but when i insert an list with all
points to the triangulation in one go i sometimes end up with an wrong result?

Delaunay.insert(Point(x,y,z)); //works

Result of vertex indices of each face:
1 3 2
1 5 3
3 5 4
1 0 5

coord.push_back(Point(x,y,z));
Delaunay.insert(coord.begin(),coord.end()); // doenst work always correct
Result(s!) of vertex indices of each face:

1 3 2
1 5 3
3 5 4
1 0 5

or

3 1 2
1 5 2
2 5 4
1 0 5

Any suggestions? Maybe the list is read in wrong.




Archive powered by MHonArc 2.6.16.

Top of Page