Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Circular Arrangements inexact?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Circular Arrangements inexact?


Chronological Thread 
  • From: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] Circular Arrangements inexact?
  • Date: Tue, 31 Mar 2009 16:31:00 +0200

Dennis Schieferdecker a écrit :
Monique Teillaud schrieb:
What you might want to do is convert the Circular_arc_point_2's
computed by the arrangement into Point_2< Cartesian< Core::Expr > >,
then all functionalities of the cgal Kernel would be available on them.
I have not tried but I guess it would work (you probably have to do
the conversion of coordinates "by hand"). I am afraid this would be
rather slow, though.
Thanks for the information. I have tried to do an exact conversion but
it seems that this cannot be done. In particular, I don't seem to be
able to convert the MP_Float type to the respective CORE type without
going over the double type.

You can try :

CGAL::MP_Float m;
CORE::Expr e = m.to_rational<CORE::Expr>();

(I don't make any promise that you will get usable speed though)

I also tried to use the circular Kernel based on the CORE::Expr number
type but that proved to be much too slow.



--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/



Archive powered by MHonArc 2.6.16.

Top of Page