Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL bug report for Circular_arc_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL bug report for Circular_arc_3


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL bug report for Circular_arc_3
  • Date: Wed, 26 Jun 2013 10:16:24 +0200
  • Organization: GeometryFactory

Thanks for the report, I just fixed it.

Sebastien.

On 06/26/2013 09:11 AM, Jean-Marie Comets wrote:
Hello all,

The following error showed up when compiling in "Debug" mode (GCC 4.6.3
(Ubuntu/Linaro 4.6.3-1ubuntu5)) :

CGAL/Circular_kernel_3/Circular_arc_3.h: In constructor
‘CGAL::internal::Circular_arc_3<SK>::Circular_arc_3(const Point_3&,
const Point_3&, const Point_3&)’:
CGAL/Circular_kernel_3/Circular_arc_3.h:219:2: error: ‘collinear’ is
not a member of ‘CGAL’
CGAL/Circular_kernel_3/Circular_arc_3.h:219:2: note: suggested
alternative:
CGAL/Kernel/global_functions_internal_2.h:242:1: note:
‘CGAL::internal::collinear

Here's the code that I found there :

CGAL_kernel_precondition(!CGAL::collinear(begin, middle, end));

And here's a reduced version of my code which uses Circular_arc_3 (all
the headers are displayed) :

#include <CGAL/Spherical_kernel_3.h> // for compare_theta_z

// ...

template <typename Kernel>
struct Comp_theta_z_3
{
typedef typename Kernel::Sphere_3 Sphere_3;
typedef typename Kernel::Circular_arc_point_3 Circular_arc_point_3;

bool operator()(const Circular_arc_point_3 & left,
const Circular_arc_point_3 & right, const Sphere_3 & sphere) const
{ return CGAL::compare_theta_z(left, right, sphere); }

// ...

};

I found that adding "#include <CGAL/Kernel/global_functions_3.h>" before
the Spherical_kernel_3 fixes the problem.


Good day,

Jean-Marie Comets




Archive powered by MHonArc 2.6.18.

Top of Page