Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] move_vertex() and change_weight() in regular triangulation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] move_vertex() and change_weight() in regular triangulation


Chronological Thread 
  • From:
  • To:
  • Subject: Re: [cgal-discuss] move_vertex() and change_weight() in regular triangulation
  • Date: Fri, 30 Nov 2007 11:03:03 +0100

To complete my answer: of course this invalidates iterators, whatever the method. You cannot expect iterators to stay valid when the triangulation changes.


wrote:
Hello Pierre,

You may know that there is a PhD just starting here on these topics.
So, one solution is to wait for 3 years until the functionality is available in CGAL ;)

In the meanwhile, you can insert+remove (there is a guess that it is better than remove+insert)...

Best
Monique Teillaud

Pierre Alliez wrote:

hi all,

I would like to move a vertex in the regular triangulation, or to change the weight of a vertex. Can I hack into the regular triangulation so as to avoid having to call (remove + insert) or (insert + remove), which has for effect to corrupt the vertex iterator.

In essence, I want to relocate/reweight all vertices of the regular triangulation in a single pass while using one vertex iterator. As some vertices may become not visible - hence part of the iterator - I agree that it must be tricky.

thanks!





Archive powered by MHonArc 2.6.16.

Top of Page