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:02:31 -0500
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:Pett0hFXevXB2buEjX2cA51GYnF86YWxBRYc798ds5kLTJ75o8mwAkXT6L1XgUPTWs2DsrQf27WQ7furADVRqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh7/0pcaYOlwZzBOGIppMbzyO5T3LsccXhYYwYo0Q8TDu5kVyRuJN2GlzLkiSlRuvru25/Zpk7jgC86l5r50IAu3GePEzQrVcSTgnKGso/9bDtB/ZTALJ6GFPfH8Rl09mGYnJbQv7Xd/JuzHzuutmkH2UJcTsROhpCRy/6Lt3QQDhziwOYW1quFrLg9B92foI6CmqoAZyltbZ

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
 
 



Archive powered by MHonArc 2.6.18.

Top of Page