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 18:30:52 -0500
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:aKM6fhE3QEXQTmAkBuXp0p1GYnF86YWxBRYc798ds5kLTJ75rsqwAkXT6L1XgUPTWs2DsrQf27WQ7fyrADVIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/niKbsp9aKOk1hv3mUX/BbFF2OtwLft80b08NJC50a7V/3mEZOYPlc3mhyJFiezF7W78a0+4N/oWwL46pyv50IbKPhYq5tTaBEFC90dCcu9cjzvF/CSxGO7z0SSCINgx9QCk/E6h/9GZz+uy+/uutm0zSBJp7KSuU/Vj2mqqtqUxT1kzwvNjgj8WiRhNYjorhcpUePvZ1zQpTVY8mtPeB3cqLGNYcUXWNbV54MBwRcBZ+gZpQGSeEIa7UL57LhrkcD+EPtTTKnA/nin2dF

Oh I see. It's starting to make sense. Thank you all very much for your help. I think you have answered all my questions for now. If someone wants to add something to this discussion, feel free to do so.

2016-02-26 16:18 GMT-05:00 Marc Glisse <>:
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

--
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