Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Getting different results...

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Getting different results...


Chronological Thread 
  • From: panayiotis foteinos <>
  • To:
  • Subject: Re: [cgal-discuss] Getting different results...
  • Date: Wed, 15 Apr 2009 12:14:24 -0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; b=AUIzJJVIUyD5PjkavdZQHVQkhmNM7Mqrnxlf9WdrPTzhMygE+Qr05ZKlQBAh+HiMWs 9TrABg8a6KrTuAWBJ3YnSGFQv6vShhPENiGgqqEK+3RZ4YG7JEGwQz4o8sqSphZkB3Gp Cnqpa1QJRqfOAWBjOaY3vy4Xgduu0MrotzwsM=

Thank you all for your replies.

Every time the same points are inserted in the same order. Of course, there
are cocircularities.

Since CGAL gives the same triangulation, probably my code has a bug.

Thanks a lot,
Panagiotis

On Wednesday 15 April 2009 10:00:59 Monique Teillaud wrote:
> Hi
>
> In 2D the result may depend on the order in which your algorithm is
> adding new points, in case of co-circular points.
>
> But in any case CGAL triangulations stay deterministic and reproducible.
> If you insert the same points in the same order, all runs will give you
> the same Delaunay triangulation.
>
> best
> Monique Teillaud
>
> Andreas Fabri wrote:
> > Hello,
> >
> > If you develop an algorithm ON TOP OF CGAL, how can you expect us to tell
> > you if your algorithm is deterministic. We don't know your code.
> >
> > CGAL Delaunay triangulations as such may give you different results
> > when you have co-circular points, for example points on a grid.
> > The diagonals can be oriented differently, and this even in every run.
> >
> > andreas
> >
> > panayiotis foteinos wrote:
> >> Hello all.
> >>
> >> I have implemented a Delaunay Refinement algorithm on CGAL. All the
> >> decisions made in the algorithm are deterministic: multiple runs on
> >> the same input PSLG should produce exactly the same mesh.
> >>
> >> I observed, however, that the output mesh is not the same after each
> >> run. Fortunately, the ouput mesh is the "correct" one after each run
> >> (I am sure about the correctness of the refined output mesh), but
> >> different. For example, the meshing of the PSLG for the first time
> >> yields 1500 faces, while the second time yields 1510.
> >>
> >> I am sorry I am asking you this but (after spending a lot of time
> >> debugging) I have to be sure:
> >> Is this behavior possible or there is a bug in my code? Should I
> >> expect the
> >> same answers from CGAL (with the same input) when no exact
> >> constructions are used?
> >>
> >> The number type I am using is double, while the predicates are exact.
> >>
> >> Thanks,
> >> Panagiotis





Archive powered by MHonArc 2.6.16.

Top of Page