Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] squared_radius() error

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] squared_radius() error


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] squared_radius() error
  • Date: Wed, 24 Feb 2010 15:44:35 +0100

mahdavi wrote:
hi,all
I have a array of spheres ,and follow error occured in an assignment .
error is :://////////////////////////////////////////////////////////////////////
: error C2440: '=' : cannot convert from 'CGAL::Null_functor::result_type'
to 'double'
///////////////////////////////////////////////////////////////////////////.
my code is:
/////////////////////////////////// code:
std::vector<K::Sphere_3>::iterator is=points1.begin();
float radius;
radius=sqrt(is->squared_radius());
//////////////////////////////////////////////////
whether someone could guidance me ? Thank you.

Hello,

I guess the underlying type of your kernel is not double.
What is K?

S.



Archive powered by MHonArc 2.6.16.

Top of Page