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: Marc Glisse <>
  • To:
  • Subject: Re: [cgal-discuss] Questions on architecture of CGAL with respect to adding a feature
  • Date: Fri, 26 Feb 2016 22:18:15 +0100 (CET)

On Fri, 26 Feb 2016, Frédérik Paradis wrote:

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?

Your traits class would not only provide the type Sphere_d, it would also provide a functor Construct_sphere_d. In the adaptor for Kernel_d, that is already provided. In the adaptor for Kernel_2, you would need to implement the functor so it reads the first 3 values of the iterator and calls Construct_circle_2 on those.

--
Marc Glisse



Archive powered by MHonArc 2.6.18.

Top of Page