Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Questions on architecture of CGAL with respect to adding a feature

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Questions on architecture of CGAL with respect to adding a feature


Chronological Thread 
  • From: Frédérik Paradis <>
  • To:
  • Subject: Re: [cgal-discuss] Questions on architecture of CGAL with respect to adding a feature
  • Date: Fri, 26 Feb 2016 15:30:13 -0500
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:qY5P1hQEj0EbiGVYR0X547l+YNpsv+yvbD5Q0YIujvd0So/mwa64bRyN2/xhgRfzUJnB7Loc0qyN4/+mBzdLuMzc+Fk5M7VyFDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5K6zPF5LIiIzvjqbpq8KVPV4D3WDgKZpJbzyI7izp/vEMhoVjLqtjgjDomVBvP9ps+GVzOFiIlAz97MrjtLRq8iBXpu5zv5UYCfayLOwFS6dFBmEmL3wt/5+s8gLSSBOGoHoaSGQf1BRSRBPU6QnzGZb3vCy9veV03GyWPNb9UKsvCgiluqxkQRuthCYcPCMi60nWjNZxheRVukGPvRt6lqDO4Y0ULvt9NpvUZ9oWRHEJCshJXjZIWt7sR5YIE/YIIu8epICr9AhGlge3GQT5XLCn8TRPnHKjhaA=

Actually, the constructor also takes the dimension d as first parameter. So, the instanciation of a Circle_2 would be something like Circle_2(2, it_begin, it_end) with the first parameter always being 2.

2016-02-26 15:10 GMT-05:00 Andreas Fabri <>:

That could be unified.  Progress never stops.

best,

andreas

On 26/02/2016 21:07, Frédérik Paradis wrote:
Sorry for my mistakes and yet I reread it before sending. It should have
been:

    whereas Circle_2 only takes three points or a center with a radius


2016-02-26 15:02 GMT-05:00 Frédérik Paradis <
<mailto:>>:

        The code you showed has:
        (distance_vw - 2.*max_rad) > s*max_rad
        which I can rewrite:
        distance_vw > (s+2)*max_rad
        and I can square both sides.

        Sure, in some cases removing the square roots can be harder, but
        it is doable.


    Alright, I see thank you.

        Try harder? That is the most natural way in CGAL. If you have
        trouble with it, maybe you can ask here with specific code.
        Maybe there is a real obstruction that prevents from using this
        solution here, but you would likely be asked to explain it
        before integrating code that uses a different strategy.


    Actually, my problem is that the constructor of Sphere_d is not the
    same as constructing a Circle_2. Sphere_d takes an iterator of
    Point_d whereas Point_2 only takes three points or a center with a
    radius. Do you know how I could work around that?

    Thank you.

    Frédérik




--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912    skype: andreas.fabri


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






Archive powered by MHonArc 2.6.18.

Top of Page