Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: CGAL doesn't like left-sided half circles ? Is it a bug or do I have a bug ?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: CGAL doesn't like left-sided half circles ? Is it a bug or do I have a bug ?


Chronological Thread 
  • From: Efi Fogel <>
  • To:
  • Subject: Re: [cgal-discuss] Re: CGAL doesn't like left-sided half circles ? Is it a bug or do I have a bug ?
  • Date: Sat, 9 Mar 2013 17:06:20 +0200

Not sure exactly which example you refer to, but the name of the example in the package is polyline.cpp and not ex_polyline.cpp. (I think in an old version it used to be called ex_polyline.cpp.)

The code in polyline.cpp uses an exact kernel.

There is an example called ex_polyline.cpp listed in the book "CGAL Arrangements and Their Applications". The code in this example also uses an exact kernel.


On Sat, Mar 9, 2013 at 4:32 PM, Tapadi <> wrote:
Hello,

I applied your advice and it works perfectly now! Thank you very much.

In order to provide the correct code for anyone else, here are the
modifications I added to the code snippet.
I replaced these two lines :

#include<CGAL/Exact_predicates_inexact_constructions_kernel.h>
typedef CGAL::Exact_predicates_inexact_constructions_kernel  Kernel;

By these two :

#include<CGAL/Exact_predicates_exact_constructions_kernel.h>
typedef CGAL::Exact_predicates_exact_constructions_kernel  Kernel;

I had also to add those following libraries for linking in order to switch
from inexact to exact kernel :

-lgmp
-lboost_thread-mt
-lmpfr

Please note that CGAL points' coordinates are then arbitrary precision
numbers and cannot be directly converted into double (for debugging or
display purposes). One have to use CGAL::to_double function to do so.
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Algebraic_foundations_ref/Function_to_double.html

Best regards,
Hugo Loi
PhD student at Inria - Maverick Team
http://maverick.inria.fr/



--
View this message in context: http://cgal-discuss.949826.n4.nabble.com/CGAL-doesn-t-like-left-sided-half-circles-Is-it-a-bug-or-do-I-have-a-bug-tp4656863p4656872.html
Sent from the cgal-discuss mailing list archive at Nabble.com.

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss





--
   ____  _        ____             _
  /_____/_) o    /__________  __  //
 (____ (   (    (    (_/ (_/-(-'_(/
                         _/





Archive powered by MHonArc 2.6.18.

Top of Page