Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Simultaneous iteration over duplicate triangulations

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Simultaneous iteration over duplicate triangulations


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Simultaneous iteration over duplicate triangulations
  • Date: Tue, 29 Jul 2014 21:31:12 +0200
  • Organization: GeometryFactory

On 07/29/2014 08:56 AM, Olivier Devillers wrote:

Le 29/07/14 04:58, chrism a écrit :
Hi all, my past two questions ended up being me missing documentation,
so I
apologize in advance if this is the case here. However, I don't think
it is.

Suppose I have a triangulation T1, and I create a copy of it in T2 (so T1
and T2 are equal in every way). Then, I want to iterate over the faces
of T1
and T2 simultaneously with iterators t1 and t2. However, I want the
constraint that t1 and t2 point to the 'same' face in T1 and T2.

This would be analogous to traversing two duplicated vectors, where
v[0] ==
v2[0].

From what I understand, finite_face_iterator makes no guarantees
about the
determinism of: a) the starting face or b) traversal order.

yes, there is no guarantee.


You may enrich your triangulation faces to be able to put cross pointers
between the faces of the two triangulations.


Note that if you are not doing any vertex removal I think it should be
deterministic in 2D.

Sebastien.



Archive powered by MHonArc 2.6.18.

Top of Page